diff --git a/xpcom/string/nsTextFormatter.cpp b/xpcom/string/nsTextFormatter.cpp index a2c24dd77184..6671979bf97a 100644 --- a/xpcom/string/nsTextFormatter.cpp +++ b/xpcom/string/nsTextFormatter.cpp @@ -471,7 +471,7 @@ nsTextFormatter::dosprintf(SprintfStateStr* aState, const char16_t* aFmt, { static const char16_t space = ' '; static const char16_t hex[] = u"0123456789abcdef"; - static char16_t HEX[] = u"0123456789ABCDEF"; + static const char16_t HEX[] = u"0123456789ABCDEF"; static const BoxedValue emptyString(u""); char16_t c;