зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1435911 - use a static const char array in nsPlainTextSerializer::DoOpenContainer; r=farre
We never modify this array, so it might as well live in read-only memory.
This commit is contained in:
Родитель
f1ef29a421
Коммит
1dc8c21c65
|
@ -698,7 +698,7 @@ nsPlainTextSerializer::DoOpenContainer(nsAtom* aTag)
|
|||
|
||||
}
|
||||
else {
|
||||
static char bulletCharArray[] = "*o+#";
|
||||
static const char bulletCharArray[] = "*o+#";
|
||||
uint32_t index = mULCount > 0 ? (mULCount - 1) : 3;
|
||||
char bulletChar = bulletCharArray[index % 4];
|
||||
mInIndentString.Append(char16_t(bulletChar));
|
||||
|
|
Загрузка…
Ссылка в новой задаче