From 0f166ef5240ee155bf2544e6bc3c985b1e3bf646 Mon Sep 17 00:00:00 2001 From: Gökhan Gurbetoğlu Date: Mon, 16 Apr 2018 15:33:03 +0300 Subject: cppcheck - fix variableScope in some files Reduced the scope of some variables in source. Change-Id: Ib3b521ca5df8b9b254b51eab5f1d7040d6cfd846 Reviewed-on: https://gerrit.libreoffice.org/52974 Tested-by: Jenkins Reviewed-by: Noel Grandin --- editeng/source/misc/svxacorr.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'editeng') diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 9ba2b3152618..8d4d9d7cc0b0 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -2569,14 +2569,13 @@ void SvxAutoCorrectLanguageLists::PutText( const OUString& rShort, MakeUserStorage_Impl(); - bool bRet = false; OUString sLong; try { uno::Reference < embed::XStorage > xStg = comphelper::OStorageHelper::GetStorageFromURL( sUserAutoCorrFile, embed::ElementModes::READWRITE ); - bRet = rAutoCorrect.PutText( xStg, sUserAutoCorrFile, rShort, rShell, sLong ); xStg = nullptr; + bool bRet = rAutoCorrect.PutText( xStg, sUserAutoCorrFile, rShort, rShell, sLong ); // Update the word list if( bRet ) { -- cgit