From 54defd1bd3359c95e45891c7294847d0cebca753 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Fri, 16 Jan 2015 22:59:20 +0100 Subject: fdo#39440 sw: reduce scope of local variables This addresses some cppcheck warnings. Change-Id: I0de4e6278fb564c299722a9e23eb67d0999c4e31 Reviewed-on: https://gerrit.libreoffice.org/13966 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/ui/misc/glossary.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sw/source/ui/misc') diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx index db6123318cb7..be9ddf896fef 100644 --- a/sw/source/ui/misc/glossary.cxx +++ b/sw/source/ui/misc/glossary.cxx @@ -958,7 +958,6 @@ TriState SwGlTreeListBox::NotifyCopyingOrMoving( SvTreeListEntry* pSrcParent = GetParent(pEntry); SvTreeListEntry* pDestParent = GetParent(pTarget) ? GetParent(pTarget) : pTarget; - bool bRet = false; if(pDestParent != pSrcParent) { SwGlossaryDlg* pDlg = static_cast(GetParentDialog()); @@ -978,7 +977,7 @@ TriState SwGlTreeListBox::NotifyCopyingOrMoving( + OUStringLiteral1() + OUString::number(pDestData->nPathIdx); - bRet = pDlg->pGlossaryHdl->CopyOrMove( sSourceGroup, sShortName, + const bool bRet = pDlg->pGlossaryHdl->CopyOrMove( sSourceGroup, sShortName, sDestName, sTitle, bIsMove ); if(bRet) { -- cgit