From b4b5335fa85576ece2871a62255ed02e5566f1c9 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Sat, 6 Aug 2011 13:42:07 -0700 Subject: [PATCH] Creatable names should be const strings. --- Sources/Plasma/NucleusLib/inc/plCreatableStrings.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Plasma/NucleusLib/inc/plCreatableStrings.h b/Sources/Plasma/NucleusLib/inc/plCreatableStrings.h index 4c449e77..33f2b4a3 100644 --- a/Sources/Plasma/NucleusLib/inc/plCreatableStrings.h +++ b/Sources/Plasma/NucleusLib/inc/plCreatableStrings.h @@ -58,17 +58,17 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com #undef CLASS_INDEX_LIST_END #define CLASS_INDEX_LIST_START class plCreatableStrings { public:\ - static char *fKeyedStrings[]; static char *fNonKeyedStrings[]; static char *fNonKeyedPostDBStrings[];\ + static const char *fKeyedStrings[]; static const char *fNonKeyedStrings[]; static const char *fNonKeyedPostDBStrings[];\ }; \ - char *plCreatableStrings::fKeyedStrings[] = { + const char *plCreatableStrings::fKeyedStrings[] = { #define CLASS_INDEX(ci) #ci -#define CLASS_INDEX_NONKEYED_OBJ_START }; char *plCreatableStrings::fNonKeyedStrings[] = { +#define CLASS_INDEX_NONKEYED_OBJ_START }; const char *plCreatableStrings::fNonKeyedStrings[] = { #define CLASS_INDEX_LIST_END }; #undef CLASS_INDEX_DATABASE_STRUCT_INDEXES_START #undef CLASS_INDEX_DATABASE_STRUCT_INDEXES_END #define CLASS_INDEX_DATABASE_STRUCT_INDEXES_START -#define CLASS_INDEX_DATABASE_STRUCT_INDEXES_END }; char *plCreatableStrings::fNonKeyedPostDBStrings[] = { +#define CLASS_INDEX_DATABASE_STRUCT_INDEXES_END }; const char *plCreatableStrings::fNonKeyedPostDBStrings[] = { // Step 3: Include plCI.h