fix linux -pedantic build - compiler confused by too much casting

This commit is contained in:
alecf%netscape.com 1999-03-02 01:41:45 +00:00
Родитель cc83dd48d4
Коммит dedc56a341
2 изменённых файлов: 8 добавлений и 4 удалений

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

@ -827,7 +827,8 @@ void nsPersistentFileDescriptor::SetData(const void* inData, PRInt32 inSize)
nsresult nsPersistentFileDescriptor::Read(nsIInputStream* aStream)
//----------------------------------------------------------------------------------------
{
nsInputStream(aStream) >> *this;
nsInputStream inputStream(aStream);
inputStream >> *this;
return NS_OK;
}
@ -835,7 +836,8 @@ nsresult nsPersistentFileDescriptor::Read(nsIInputStream* aStream)
nsresult nsPersistentFileDescriptor::Write(nsIOutputStream* aStream)
//----------------------------------------------------------------------------------------
{
nsOutputStream(aStream) << *this;
nsOutputStream outputStream(aStream);
outputStream << *this;
return NS_OK;
}

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

@ -827,7 +827,8 @@ void nsPersistentFileDescriptor::SetData(const void* inData, PRInt32 inSize)
nsresult nsPersistentFileDescriptor::Read(nsIInputStream* aStream)
//----------------------------------------------------------------------------------------
{
nsInputStream(aStream) >> *this;
nsInputStream inputStream(aStream);
inputStream >> *this;
return NS_OK;
}
@ -835,7 +836,8 @@ nsresult nsPersistentFileDescriptor::Read(nsIInputStream* aStream)
nsresult nsPersistentFileDescriptor::Write(nsIOutputStream* aStream)
//----------------------------------------------------------------------------------------
{
nsOutputStream(aStream) << *this;
nsOutputStream outputStream(aStream);
outputStream << *this;
return NS_OK;
}