зеркало из https://github.com/mozilla/pjs.git
making string conversions explicit
This commit is contained in:
Родитель
62ec840bf2
Коммит
d0cd9d8b84
|
@ -135,7 +135,7 @@ nsPersistentProperties::Load(nsIInputStream *aIn)
|
|||
c = SkipWhiteSpace(c);
|
||||
}
|
||||
else {
|
||||
value.Append('\\');
|
||||
value.AppendWithConversion('\\');
|
||||
}
|
||||
}
|
||||
value.Append((PRUnichar) c);
|
||||
|
|
|
@ -303,10 +303,10 @@ nsBinaryInputStream::ReadStringZ(char* *aString)
|
|||
rv = Read(&c, 1, &actualBytesRead);
|
||||
if (NS_FAILED(rv) || actualBytesRead != 1)
|
||||
return NS_ERROR_FAILURE;
|
||||
if (c)
|
||||
result += c;
|
||||
else
|
||||
if (!c)
|
||||
break;
|
||||
|
||||
result.AppendWithConversion(c);
|
||||
}
|
||||
|
||||
*aString = result.ToNewCString();
|
||||
|
|
Загрузка…
Ссылка в новой задаче