diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-11-24 16:34:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-24 16:34:59 +0000 |
commit | 1269b1613dcec1a69671f827c07796696f6b8769 (patch) | |
tree | d8838af674f7a29563c94fc39427685ba187cf0d /sot/source/sdstor | |
parent | 19658260a4498a752007048b5c1dc1985af9c752 (diff) |
cppcheck: The scope of this variable can be reduced
Diffstat (limited to 'sot/source/sdstor')
-rw-r--r-- | sot/source/sdstor/storage.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx index 4503c8506c27..e9ea19bd3ffe 100644 --- a/sot/source/sdstor/storage.cxx +++ b/sot/source/sdstor/storage.cxx @@ -169,11 +169,10 @@ SotStorageStream::~SotStorageStream() *************************************************************************/ void SotStorageStream::SyncSvStream() { - ULONG nPos = 0; if( pOwnStm ) { pOwnStm->Flush(); - nPos = pOwnStm->Tell(); + ULONG nPos = pOwnStm->Tell(); SetError( pOwnStm->GetError() ); SvStream::SyncSvStream( nPos ); } |