diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index 68c9dc9f7ac5..9516581e5cac 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -417,9 +417,8 @@ SvStream::SvStream( SvLockBytes* pLockBytesP ) ImpInit(); xLockBytes = pLockBytesP; - const SvStream* pStrm; if( pLockBytesP ) { - pStrm = pLockBytesP->GetStream(); + const SvStream* pStrm = pLockBytesP->GetStream(); if( pStrm ) { SetError( pStrm->GetErrorCode() ); }