diff --git a/intl/locale/nsLanguageAtomService.cpp b/intl/locale/nsLanguageAtomService.cpp index 4ccf247e73cf..0a674281005a 100644 --- a/intl/locale/nsLanguageAtomService.cpp +++ b/intl/locale/nsLanguageAtomService.cpp @@ -15,7 +15,7 @@ using namespace mozilla; -static const char* kLangGroups[][3] = { +static const char* const kLangGroups[][3] = { #include "langGroups.properties.h" }; diff --git a/intl/locale/nsUConvPropertySearch.cpp b/intl/locale/nsUConvPropertySearch.cpp index d9e58d0f9b4e..59b4aed81f9b 100644 --- a/intl/locale/nsUConvPropertySearch.cpp +++ b/intl/locale/nsUConvPropertySearch.cpp @@ -13,7 +13,7 @@ struct PropertyComparator { const nsCString& mKey; explicit PropertyComparator(const nsCString& aKey) : mKey(aKey) {} - int operator()(const char* (&aProperty)[3]) const { + int operator()(const char* const (&aProperty)[3]) const { return mKey.Compare(aProperty[0]); } }; @@ -22,7 +22,7 @@ struct PropertyComparator // static nsresult -nsUConvPropertySearch::SearchPropertyValue(const char* aProperties[][3], +nsUConvPropertySearch::SearchPropertyValue(const char* const aProperties[][3], int32_t aNumberOfProperties, const nsACString& aKey, nsACString& aValue) diff --git a/intl/locale/nsUConvPropertySearch.h b/intl/locale/nsUConvPropertySearch.h index 09434c9b9094..1330aa5b1210 100644 --- a/intl/locale/nsUConvPropertySearch.h +++ b/intl/locale/nsUConvPropertySearch.h @@ -21,7 +21,7 @@ class nsUConvPropertySearch * the return value (empty string if not found) * @return NS_OK if found or NS_ERROR_FAILURE if not found */ - static nsresult SearchPropertyValue(const char* aProperties[][3], + static nsresult SearchPropertyValue(const char* const aProperties[][3], int32_t aNumberOfProperties, const nsACString& aKey, nsACString& aValue); diff --git a/intl/locale/unix/nsUNIXCharset.cpp b/intl/locale/unix/nsUNIXCharset.cpp index 2d97d1536f0c..43d36d99411d 100644 --- a/intl/locale/unix/nsUNIXCharset.cpp +++ b/intl/locale/unix/nsUNIXCharset.cpp @@ -29,7 +29,7 @@ using mozilla::dom::EncodingUtils; using namespace mozilla; -static const char* kUnixCharsets[][3] = { +static const char* const kUnixCharsets[][3] = { #include "unixcharset.properties.h" }; diff --git a/intl/locale/windows/nsWinCharset.cpp b/intl/locale/windows/nsWinCharset.cpp index 2423d130c745..f0747373cffe 100644 --- a/intl/locale/windows/nsWinCharset.cpp +++ b/intl/locale/windows/nsWinCharset.cpp @@ -17,7 +17,7 @@ using namespace mozilla; -static const char* kWinCharsets[][3] = { +static const char* const kWinCharsets[][3] = { #include "wincharset.properties.h" };