summaryrefslogtreecommitdiff
path: root/sw/source/ui/misc
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2015-01-16 22:59:20 +0100
committerNoel Grandin <noelgrandin@gmail.com>2015-01-19 07:14:45 +0000
commit54defd1bd3359c95e45891c7294847d0cebca753 (patch)
tree75ff66d79c1a2cc98fd61e7489eba2cd8bbafdf3 /sw/source/ui/misc
parentf5f7a69628ad316298febe7b51234428a7896ff9 (diff)
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 <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/ui/misc')
-rw-r--r--sw/source/ui/misc/glossary.cxx3
1 files changed, 1 insertions, 2 deletions
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<SwGlossaryDlg*>(GetParentDialog());
@@ -978,7 +977,7 @@ TriState SwGlTreeListBox::NotifyCopyingOrMoving(
+ OUStringLiteral1<GLOS_DELIM>()
+ OUString::number(pDestData->nPathIdx);
- bRet = pDlg->pGlossaryHdl->CopyOrMove( sSourceGroup, sShortName,
+ const bool bRet = pDlg->pGlossaryHdl->CopyOrMove( sSourceGroup, sShortName,
sDestName, sTitle, bIsMove );
if(bRet)
{