From 6e1bc19044dc154fee30263951e1122028b22b5b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 10 Jun 2021 11:49:20 +0200 Subject: loplugin:unnecessaryreturn SotStorageStream::Commit Change-Id: Icfd32ea8b29aa544b71d0c4fc6bc67c06f81e327 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116987 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sot/source/sdstor/storage.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sot/source/sdstor/storage.cxx') 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 ) -- cgit