зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1255655 - Const-ify k{Unix,Win}Charsets and kLangGroups. r=smontagu.
--HG-- extra : rebase_source : 178ec56c7c10747b4bf7eac7cf9982fa95ee80f0
This commit is contained in:
Родитель
42e1362b4d
Коммит
dfe9948e43
|
@ -15,7 +15,7 @@
|
|||
|
||||
using namespace mozilla;
|
||||
|
||||
static const char* kLangGroups[][3] = {
|
||||
static const char* const kLangGroups[][3] = {
|
||||
#include "langGroups.properties.h"
|
||||
};
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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"
|
||||
};
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
using namespace mozilla;
|
||||
|
||||
static const char* kWinCharsets[][3] = {
|
||||
static const char* const kWinCharsets[][3] = {
|
||||
#include "wincharset.properties.h"
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче