From 1269b1613dcec1a69671f827c07796696f6b8769 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 24 Nov 2010 16:34:59 +0000 Subject: cppcheck: The scope of this variable can be reduced --- sot/source/sdstor/storage.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sot') 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 ); } -- cgit