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
parent 964f022e13
commit 88fe8762de
2 changed files with 8 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}