зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1255655 - Const-ify sExtensionNames. r=mattwoodrow.
--HG-- extra : rebase_source : 701319b65fce70b62535248b9c33dd6357320abf
This commit is contained in:
Родитель
70bf1444e7
Коммит
50399fa6c3
|
@ -65,7 +65,7 @@ uint32_t GLContext::sDebugMode = 0;
|
|||
#define END_SYMBOLS { nullptr, { nullptr } }
|
||||
|
||||
// should match the order of GLExtensions, and be null-terminated.
|
||||
static const char *sExtensionNames[] = {
|
||||
static const char *const sExtensionNames[] = {
|
||||
"NO_EXTENSION",
|
||||
"GL_AMD_compressed_ATC_texture",
|
||||
"GL_ANGLE_depth_texture",
|
||||
|
|
|
@ -3642,7 +3642,7 @@ void SplitByChar(const nsACString& str, const char delim,
|
|||
|
||||
template<size_t N>
|
||||
bool
|
||||
MarkBitfieldByString(const nsACString& str, const char* (&markStrList)[N],
|
||||
MarkBitfieldByString(const nsACString& str, const char* const (&markStrList)[N],
|
||||
std::bitset<N>* const out_markList)
|
||||
{
|
||||
for (size_t i = 0; i < N; i++) {
|
||||
|
@ -3657,7 +3657,7 @@ MarkBitfieldByString(const nsACString& str, const char* (&markStrList)[N],
|
|||
template<size_t N>
|
||||
void
|
||||
MarkBitfieldByStrings(const std::vector<nsCString>& strList,
|
||||
bool dumpStrings, const char* (&markStrList)[N],
|
||||
bool dumpStrings, const char* const (&markStrList)[N],
|
||||
std::bitset<N>* const out_markList)
|
||||
{
|
||||
for (auto itr = strList.begin(); itr != strList.end(); ++itr) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче