mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 04:58:00 +00:00
Ensure that string literals are used as |const char*| rather than |char*|. r=jag sr=brendan b=107052
This commit is contained in:
parent
cad07af2bb
commit
558132da05
@ -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[];
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user