From c65a72ac1e7d6ff573611093c0f4800a9f0b6288 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Wed, 14 Feb 2018 12:01:36 -0500 Subject: [PATCH] Bug 1435916 - use a const array in nsTextFormatter::dosprintf; r=tromey I don't know how this was not constant, but there you go. --- xpcom/string/nsTextFormatter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;