зеркало из 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);
|
c = SkipWhiteSpace(c);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
value.Append('\\');
|
value.AppendWithConversion('\\');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
value.Append((PRUnichar) c);
|
value.Append((PRUnichar) c);
|
||||||
|
|
|
@ -303,10 +303,10 @@ nsBinaryInputStream::ReadStringZ(char* *aString)
|
||||||
rv = Read(&c, 1, &actualBytesRead);
|
rv = Read(&c, 1, &actualBytesRead);
|
||||||
if (NS_FAILED(rv) || actualBytesRead != 1)
|
if (NS_FAILED(rv) || actualBytesRead != 1)
|
||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
if (c)
|
if (!c)
|
||||||
result += c;
|
|
||||||
else
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
result.AppendWithConversion(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
*aString = result.ToNewCString();
|
*aString = result.ToNewCString();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче