making string conversions explicit

This commit is contained in:
scc%netscape.com 2000-04-15 05:23:09 +00:00
Родитель 62ec840bf2
Коммит d0cd9d8b84
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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();