summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-11-24 16:34:59 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-24 16:34:59 +0000
commit1269b1613dcec1a69671f827c07796696f6b8769 (patch)
treed8838af674f7a29563c94fc39427685ba187cf0d /sot
parent19658260a4498a752007048b5c1dc1985af9c752 (diff)
cppcheck: The scope of this variable can be reduced
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/storage.cxx3
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 );
}