Don't define CStrings in headers. A new instance will be created in every

file that uses the header.  A string in GameConstantsAndTypes.h may be duplicated
dozens of times; since it's not a POD, the compiler can't omit or merge it.
This commit is contained in:
Glenn Maynard
2005-06-09 04:03:08 +00:00
parent 4cbef95dcb
commit 6be07b3d5d
6 changed files with 39 additions and 20 deletions
+9 -2
View File
@@ -27,8 +27,15 @@
//
// Old file versions for backward compatibility
//
const CString STATS_XSL = "Stats.xsl";
const CString COMMON_XSL = "Common.xsl";
const CString STATS_XSL = "Stats.xsl";
const CString COMMON_XSL = "Common.xsl";
const CString STATS_XML = "Stats.xml";
const CString EDITABLE_INI = "Editable.ini";
const CString DONT_SHARE_SIG = "DontShare.sig";
const CString PUBLIC_KEY_FILE = "public.key";
const CString SCREENSHOTS_SUBDIR = "Screenshots/";
const CString EDITS_SUBDIR = "Edits/";
const CString LASTGOOD_SUBDIR = "LastGood/";
#define GUID_SIZE_BYTES 8