diff --git a/mozilla/layout/generic/nsTextFrame.cpp b/mozilla/layout/generic/nsTextFrame.cpp index aea6eaa1824..0b222a2c089 100644 --- a/mozilla/layout/generic/nsTextFrame.cpp +++ b/mozilla/layout/generic/nsTextFrame.cpp @@ -4642,7 +4642,7 @@ IsPunctuationMark(PRUnichar aChar) //The following table is generated by a method written by Ftang, see bug 54467. //In case we need to add or substract any character (for example, unicode standard got // updated), the character in table must be kept in strict ascending order - static PRUnichar PuncSet[] = + static const PRUnichar PuncSet[] = { 0x0021, 0x0022, 0x0023, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002A, 0x002C, 0x002E, 0x002F, 0x003A, 0x003B, 0x003F, 0x0040, diff --git a/mozilla/layout/html/base/src/nsTextFrame.cpp b/mozilla/layout/html/base/src/nsTextFrame.cpp index aea6eaa1824..0b222a2c089 100644 --- a/mozilla/layout/html/base/src/nsTextFrame.cpp +++ b/mozilla/layout/html/base/src/nsTextFrame.cpp @@ -4642,7 +4642,7 @@ IsPunctuationMark(PRUnichar aChar) //The following table is generated by a method written by Ftang, see bug 54467. //In case we need to add or substract any character (for example, unicode standard got // updated), the character in table must be kept in strict ascending order - static PRUnichar PuncSet[] = + static const PRUnichar PuncSet[] = { 0x0021, 0x0022, 0x0023, 0x0025, 0x0026, 0x0027, 0x0028, 0x0029, 0x002A, 0x002C, 0x002E, 0x002F, 0x003A, 0x003B, 0x003F, 0x0040,