diff --git a/content/xslt/src/xslt/txGenerateIdFunctionCall.cpp b/content/xslt/src/xslt/txGenerateIdFunctionCall.cpp index 8482458f2850..4b8b5545a589 100644 --- a/content/xslt/src/xslt/txGenerateIdFunctionCall.cpp +++ b/content/xslt/src/xslt/txGenerateIdFunctionCall.cpp @@ -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 /** diff --git a/content/xslt/src/xslt/txXSLTFunctions.h b/content/xslt/src/xslt/txXSLTFunctions.h index 472a62e9c9ce..a87a63688cd6 100644 --- a/content/xslt/src/xslt/txXSLTFunctions.h +++ b/content/xslt/src/xslt/txXSLTFunctions.h @@ -316,7 +316,7 @@ public: virtual ExprResult* evaluate(Node* context, ContextState* cs); private: - static char* printfFmt; + static const char printfFmt[]; }; /**