summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-05-07 23:18:14 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-08 02:13:53 +0200
commit0c363500584194f75dfa7f229ee932a759a95bbe (patch)
treecfacb7345781f9171d398b790a52d062b760b3b5 /cui
parentc3e0b7dd4e7b1d33b8555e0acdf9f44cfc043ca2 (diff)
cppcheck nitpicks variableScope and redundantAssignment
Change-Id: I1399e066a96bbd9a3b59e2670a75b0022c882a1d Reviewed-on: https://gerrit.libreoffice.org/37354 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/cfg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 046b244b2106..5122f35908ee 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -996,7 +996,6 @@ bool SaveInData::LoadSubMenus(
if ( bItem )
{
bool bIsUserDefined = true;
- bool bUseDefaultLabel = false;
if ( nType == css::ui::ItemType::DEFAULT )
{
@@ -1011,6 +1010,7 @@ bool SaveInData::LoadSubMenus(
bIsUserDefined = true;
}
+ bool bUseDefaultLabel = false;
// If custom label not set retrieve it from the command
// to info service
if ( aLabel.isEmpty() )
@@ -4290,7 +4290,6 @@ void ToolbarSaveInData::LoadToolbar(
if ( bItem )
{
bool bIsUserDefined = true;
- bool bUseDefaultLabel = false;
if ( nType == css::ui::ItemType::DEFAULT )
{
@@ -4305,6 +4304,7 @@ void ToolbarSaveInData::LoadToolbar(
bIsUserDefined = true;
}
+ bool bUseDefaultLabel = false;
// If custom label not set retrieve it from the command
// to info service
if ( aLabel.isEmpty() )