diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-10 11:49:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-10 20:09:29 +0200 |
commit | 6e1bc19044dc154fee30263951e1122028b22b5b (patch) | |
tree | 3567678468d78301daa1bb4054fb15e9a8828bd4 | |
parent | 7f3c9da5a0a8f27e3fe63c39a30fc08e34246420 (diff) |
loplugin:unnecessaryreturn SotStorageStream::Commit
Change-Id: Icfd32ea8b29aa544b71d0c4fc6bc67c06f81e327
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116987
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | include/sot/storage.hxx | 2 | ||||
-rw-r--r-- | sot/source/sdstor/storage.cxx | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/sot/storage.hxx b/include/sot/storage.hxx index 65cde53d2a67..41b57506946c 100644 --- a/include/sot/storage.hxx +++ b/include/sot/storage.hxx @@ -64,7 +64,7 @@ public: virtual void SetSize(sal_uInt64 nNewSize) override; sal_uInt32 GetSize() const; - bool Commit(); + void Commit(); bool SetProperty(OUString const & rName, css::uno::Any const & rValue); virtual sal_uInt64 TellEnd() override; }; diff --git a/sot/source/sdstor/storage.cxx b/sot/source/sdstor/storage.cxx index 596a59d59785..cef5b3d7a02d 100644 --- a/sot/source/sdstor/storage.cxx +++ b/sot/source/sdstor/storage.cxx @@ -176,13 +176,12 @@ sal_uInt64 SotStorageStream::TellEnd() return pOwnStm->GetSize(); } -bool SotStorageStream::Commit() +void SotStorageStream::Commit() { pOwnStm->Flush(); if( pOwnStm->GetError() == ERRCODE_NONE ) pOwnStm->Commit(); SetError( pOwnStm->GetError() ); - return GetError() == ERRCODE_NONE; } bool SotStorageStream::SetProperty( const OUString& rName, const css::uno::Any& rValue ) |