fix and improve the game selection and game configuration dialogs - added dir dialog, using GtkComboBox (added support for GtkComboBox too)
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@248 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
23
libs/str.h
23
libs/str.h
@@ -58,20 +58,21 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#define __StrDup Q_StrDup
|
||||
|
||||
inline char* Q_StrDup(char* pStr)
|
||||
{
|
||||
if (pStr == NULL)
|
||||
pStr = "";
|
||||
inline char* Q_StrDup( char* _pStr ) {
|
||||
const char* pStr = _pStr;
|
||||
if ( pStr == NULL ) {
|
||||
pStr = "";
|
||||
}
|
||||
|
||||
return strcpy(new char[strlen(pStr)+1], pStr);
|
||||
return strcpy( new char[ strlen( pStr ) + 1 ], pStr );
|
||||
}
|
||||
|
||||
inline char* Q_StrDup(const char* pStr)
|
||||
{
|
||||
if (pStr == NULL)
|
||||
pStr = "";
|
||||
inline char* Q_StrDup( const char* pStr ) {
|
||||
if ( pStr == NULL ) {
|
||||
pStr = "";
|
||||
}
|
||||
|
||||
return strcpy(new char[strlen(pStr)+1], pStr);
|
||||
return strcpy( new char[strlen(pStr)+1], pStr );
|
||||
}
|
||||
|
||||
#if defined (__linux__) || defined (__APPLE__)
|
||||
@@ -286,7 +287,6 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
g_pStrWork = "";
|
||||
g_pStrWork = new char[1];
|
||||
g_pStrWork[0] = '\0';
|
||||
}
|
||||
@@ -327,7 +327,6 @@ public:
|
||||
}
|
||||
else
|
||||
{
|
||||
g_pStrWork = "";
|
||||
g_pStrWork = new char[1];
|
||||
g_pStrWork[0] = '\0';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user