move our CStirng into a namespace to fix conflict with MFC
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
#include "EnumHelper.h"
|
#include "EnumHelper.h"
|
||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
|
|
||||||
CString GetThemedString( CCStringRef sClass, CCStringRef sValue )
|
CString GetThemedString( const CString &sClass, const CString &sValue )
|
||||||
{
|
{
|
||||||
return THEME->GetMetric( sClass, sValue );
|
return THEME->GetMetric( sClass, sValue );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -305,6 +305,8 @@ typedef char* PSTR;
|
|||||||
// the more portable, standard way of doing things, while the other is the
|
// the more portable, standard way of doing things, while the other is the
|
||||||
// non-standard, but often significantly faster Visual C++ way.
|
// non-standard, but often significantly faster Visual C++ way.
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
|
namespace StdString
|
||||||
|
{
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// sslen: strlen/wcslen wrappers
|
// sslen: strlen/wcslen wrappers
|
||||||
@@ -1303,6 +1305,8 @@ struct StdStringEqualsNoCaseA
|
|||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
} // namespace StdString
|
||||||
|
|
||||||
#if defined(_MSC_VER) && (_MSC_VER > 1100)
|
#if defined(_MSC_VER) && (_MSC_VER > 1100)
|
||||||
#pragma warning (pop)
|
#pragma warning (pop)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -134,8 +134,7 @@ void ShowWarning( const char *file, int line, const char *message ); // don't pu
|
|||||||
|
|
||||||
/* Use CStdString: */
|
/* Use CStdString: */
|
||||||
#include "StdString.h"
|
#include "StdString.h"
|
||||||
|
using namespace StdString;
|
||||||
typedef const CString& CCStringRef;
|
|
||||||
|
|
||||||
/* Include this here to make sure our assertion handler is always
|
/* Include this here to make sure our assertion handler is always
|
||||||
* used. (This file is a dependency of most everything anyway,
|
* used. (This file is a dependency of most everything anyway,
|
||||||
|
|||||||
Reference in New Issue
Block a user