summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-06-10 11:49:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-10 20:09:29 +0200
commit6e1bc19044dc154fee30263951e1122028b22b5b (patch)
tree3567678468d78301daa1bb4054fb15e9a8828bd4 /sot
parent7f3c9da5a0a8f27e3fe63c39a30fc08e34246420 (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>
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 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 )