Ensure that string literals are used as |const char*| rather than |char*|. r=jag sr=brendan b=107052

This commit is contained in:
dbaron%fas.harvard.edu 2005-11-02 07:37:10 +00:00
Родитель cad07af2bb
Коммит 558132da05
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -35,9 +35,9 @@
*/
#ifndef HAVE_64BIT_OS
char* GenerateIdFunctionCall::printfFmt = "id0x%08p";
const char GenerateIdFunctionCall::printfFmt[] = "id0x%08p";
#else
char* GenerateIdFunctionCall::printfFmt = "id0x%016p";
const char GenerateIdFunctionCall::printfFmt[] = "id0x%016p";
#endif
/**

Просмотреть файл

@ -316,7 +316,7 @@ public:
virtual ExprResult* evaluate(Node* context, ContextState* cs);
private:
static char* printfFmt;
static const char printfFmt[];
};
/**