diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-15 19:32:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-15 20:58:44 +0200 |
commit | a2362e0ff5a7cec16e888502a3c16fe2fa7ba0fe (patch) | |
tree | 65fe364e263391985bc0fd43103259dbe6119fa2 /sot | |
parent | cac8694feab1ccb422294ed3e2f8b682e15835fb (diff) |
loplugin:buriedassign in sfx2..sot
Change-Id: I917752edb50020f9acb203038ce65f1ea25afa64
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92312
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stg.cxx | 5 | ||||
-rw-r--r-- | sot/source/sdstor/stgdir.cxx | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sot/source/sdstor/stg.cxx b/sot/source/sdstor/stg.cxx index edc2477f7651..3e72d13b3fff 100644 --- a/sot/source/sdstor/stg.cxx +++ b/sot/source/sdstor/stg.cxx @@ -211,7 +211,10 @@ sal_uLong StorageStream::Write( const void* pData, sal_uLong nSize ) sal_uInt64 StorageStream::Seek( sal_uInt64 n ) { if( Validate() ) - return nPos = pEntry->Seek( n ); + { + nPos = pEntry->Seek( n ); + return nPos; + } else return n; } diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx index 4002d637230d..f7047dc28600 100644 --- a/sot/source/sdstor/stgdir.cxx +++ b/sot/source/sdstor/stgdir.cxx @@ -423,7 +423,8 @@ sal_Int32 StgDirEntry::Seek( sal_Int32 nNew ) nNew = m_pStgStrm->GetPos(); } - return m_nPos = nNew; + m_nPos = nNew; + return m_nPos; } // Read |