diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2015-01-14 17:42:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-14 20:43:30 +0000 |
commit | ba3f0cfecdddf0275278987a75b5ee620744eb84 (patch) | |
tree | 11d58aaa374d9e7cf048c5687e6bb777bedd9099 /svx/source/fmcomp/fmgridcl.cxx | |
parent | c752d8bdf099b4ba2ef2e145e0d9da42ba7e74d7 (diff) |
fdo#39440 svx: reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: I800242bbac3092d2dbaa9098fc6355fe675872e1
Reviewed-on: https://gerrit.libreoffice.org/13906
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/fmcomp/fmgridcl.cxx')
-rw-r--r-- | svx/source/fmcomp/fmgridcl.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx index d625b17de678..a611b540a37b 100644 --- a/svx/source/fmcomp/fmgridcl.cxx +++ b/svx/source/fmcomp/fmgridcl.cxx @@ -747,7 +747,6 @@ void FmGridHeader::PreExecuteColumnContextMenu(sal_uInt16 nColId, PopupMenu& rMe bAllowHide = bAllowHide && (xCols->getCount()-nHiddenCols > 1); // AND there are at least two visible columns rMenu.EnableItem(SID_FM_HIDECOL, bAllowHide); - bool bChecked = false; if (bMarked) { @@ -761,7 +760,7 @@ void FmGridHeader::PreExecuteColumnContextMenu(sal_uInt16 nColId, PopupMenu& rMe if (eState >= SfxItemState::DEFAULT && pItem ) { - bChecked = pItem->ISA(SfxBoolItem) && static_cast<SfxBoolItem*>(pItem)->GetValue(); + bool bChecked = pItem->ISA(SfxBoolItem) && static_cast<SfxBoolItem*>(pItem)->GetValue(); rMenu.CheckItem(SID_FM_SHOW_PROPERTY_BROWSER,bChecked); } delete pItem; |