diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-12-27 15:05:23 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-12-27 15:22:56 +0100 |
commit | a81896a9d2517155f1d8ec7a98767bfc27c1f0c7 (patch) | |
tree | 65ba1936198feb44e5084531b673e9ba6ee39a1e /sot | |
parent | beba4603ee8e603fff2599bee7f157d90872cb99 (diff) |
cppcheck: reduce scope
Change-Id: If8220e82165d8ab85906584baa3827e3b6f5c2f4
Diffstat (limited to 'sot')
-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 3ae023668533..9b408647cff7 100644 --- a/sot/source/sdstor/storage.cxx +++ b/sot/source/sdstor/storage.cxx @@ -775,7 +775,6 @@ SotStorage * SotStorage::OpenSotStorage( const OUString & rEleName, StreamMode nMode, StorageMode nStorageMode ) { - SotStorage * pStor = NULL; DBG_ASSERT( Owner(), "must be owner" ); if( m_pOwnStg ) { @@ -785,7 +784,7 @@ SotStorage * SotStorage::OpenSotStorage( const OUString & rEleName, (nStorageMode & STORAGE_TRANSACTED) ? false : true ); if( p ) { - pStor = new SotStorage( p ); + SotStorage * pStor = new SotStorage( p ); if( !nE ) m_pOwnStg->ResetError(); // kein Fehler setzen |