Kaydet (Commit) f97009d7 authored tarafından Caolán McNamara's avatar Caolán McNamara

clang: Assigned value is garbage or undefined

Change-Id: Ida7a6ab077e1f0436f8b775956d30c82c4ad5338
üst be9d65bb
...@@ -322,7 +322,7 @@ sal_Size SvStream::GetData( void* pData, sal_Size nSize ) ...@@ -322,7 +322,7 @@ sal_Size SvStream::GetData( void* pData, sal_Size nSize )
if( !GetError() ) if( !GetError() )
{ {
DBG_ASSERT( xLockBytes.Is(), "pure virtual function" ); DBG_ASSERT( xLockBytes.Is(), "pure virtual function" );
sal_Size nRet; sal_Size nRet(0);
nError = xLockBytes->ReadAt(m_nActPos, pData, nSize, &nRet); nError = xLockBytes->ReadAt(m_nActPos, pData, nSize, &nRet);
m_nActPos += nRet; m_nActPos += nRet;
return nRet; return nRet;
...@@ -335,7 +335,7 @@ sal_Size SvStream::PutData( const void* pData, sal_Size nSize ) ...@@ -335,7 +335,7 @@ sal_Size SvStream::PutData( const void* pData, sal_Size nSize )
if( !GetError() ) if( !GetError() )
{ {
DBG_ASSERT( xLockBytes.Is(), "pure virtual function" ); DBG_ASSERT( xLockBytes.Is(), "pure virtual function" );
sal_Size nRet; sal_Size nRet(0);
nError = xLockBytes->WriteAt(m_nActPos, pData, nSize, &nRet); nError = xLockBytes->WriteAt(m_nActPos, pData, nSize, &nRet);
m_nActPos += nRet; m_nActPos += nRet;
return nRet; return nRet;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment