зеркало из https://github.com/mozilla/gecko-dev.git
Move static constructor into function instead of global. It was coredumping on AIX
This commit is contained in:
Родитель
9acf604770
Коммит
43857716d1
|
@ -583,9 +583,9 @@ PRInt32 CRTFContent::GetTokenType() {
|
||||||
* @param
|
* @param
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
static nsString textTerminators("\\{}");
|
|
||||||
|
|
||||||
nsresult CRTFContent::Consume(PRUnichar aChar,nsScanner& aScanner) {
|
nsresult CRTFContent::Consume(PRUnichar aChar,nsScanner& aScanner) {
|
||||||
|
static nsString textTerminators("\\{}");
|
||||||
PRInt32 result=aScanner.ReadUntil(mTextValue,textTerminators,PR_FALSE,PR_FALSE);
|
PRInt32 result=aScanner.ReadUntil(mTextValue,textTerminators,PR_FALSE,PR_FALSE);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -583,9 +583,9 @@ PRInt32 CRTFContent::GetTokenType() {
|
||||||
* @param
|
* @param
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
static nsString textTerminators("\\{}");
|
|
||||||
|
|
||||||
nsresult CRTFContent::Consume(PRUnichar aChar,nsScanner& aScanner) {
|
nsresult CRTFContent::Consume(PRUnichar aChar,nsScanner& aScanner) {
|
||||||
|
static nsString textTerminators("\\{}");
|
||||||
PRInt32 result=aScanner.ReadUntil(mTextValue,textTerminators,PR_FALSE,PR_FALSE);
|
PRInt32 result=aScanner.ReadUntil(mTextValue,textTerminators,PR_FALSE,PR_FALSE);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче