[Libreoffice-commits] core.git: sw/source

Michael Stahl mstahl at redhat.com
Wed Jan 13 05:00:15 PST 2016


 sw/source/uibase/dochdl/gloshdl.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit e17855d3bf12de307693aa34ace8f4fd20c707e6
Author: Michael Stahl <mstahl at redhat.com>
Date:   Wed Jan 13 13:57:46 2016 +0100

    sw: -Werror=unused-but-set-variable
    
    Change-Id: I9e42af61beff705a8691322a56a967676d560678

diff --git a/sw/source/uibase/dochdl/gloshdl.cxx b/sw/source/uibase/dochdl/gloshdl.cxx
index 5de1b12..464deac 100644
--- a/sw/source/uibase/dochdl/gloshdl.cxx
+++ b/sw/source/uibase/dochdl/gloshdl.cxx
@@ -187,7 +187,6 @@ void SwGlossaryHdl::NewGroup(OUString &rGrpName, const OUString& rTitle)
 
 void SwGlossaryHdl::RenameGroup(const OUString& rOld, OUString& rNew, const OUString& rNewTitle)
 {
-    bool bRet = false;
     OUString sOldGroup(rOld);
     if (rOld.indexOf(GLOS_DELIM)<0)
         FindGroupName(sOldGroup);
@@ -198,7 +197,6 @@ void SwGlossaryHdl::RenameGroup(const OUString& rOld, OUString& rNew, const OUSt
         {
             pGroup->SetName(rNewTitle);
             delete pGroup;
-            bRet = true;
         }
     }
     else
@@ -208,7 +206,7 @@ void SwGlossaryHdl::RenameGroup(const OUString& rOld, OUString& rNew, const OUSt
         {
             sNewGroup += OUStringLiteral1<GLOS_DELIM>() + "0";
         }
-        bRet = rStatGlossaries.RenameGroupDoc(sOldGroup, sNewGroup, rNewTitle);
+        rStatGlossaries.RenameGroupDoc(sOldGroup, sNewGroup, rNewTitle);
         rNew = sNewGroup;
     }
 }


More information about the Libreoffice-commits mailing list