summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/PaletteManager.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2015-01-14 18:03:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-14 20:42:32 +0000
commitc752d8bdf099b4ba2ef2e145e0d9da42ba7e74d7 (patch)
tree8386738dfe2bb6b05e8ee0e3cbc6709499bfd937 /svx/source/tbxctrls/PaletteManager.cxx
parentc0948f29ebd61a232406c30c306d7d8b23a596a6 (diff)
fdo#39440 svx: reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: I8c63a767c62b3a666ad445a0a3095d1bb1224f5e Reviewed-on: https://gerrit.libreoffice.org/13908 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/tbxctrls/PaletteManager.cxx')
-rw-r--r--svx/source/tbxctrls/PaletteManager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/PaletteManager.cxx b/svx/source/tbxctrls/PaletteManager.cxx
index 33f346e24840..f5ad05161ae4 100644
--- a/svx/source/tbxctrls/PaletteManager.cxx
+++ b/svx/source/tbxctrls/PaletteManager.cxx
@@ -81,11 +81,11 @@ void PaletteManager::ReloadColorSet(SvxColorValueSet &rColorSet)
if( mnCurrentPalette == 0 )
{
- const SfxPoolItem* pItem = NULL;
XColorListRef pColorList;
if ( pDocSh )
{
+ const SfxPoolItem* pItem = NULL;
if ( 0 != ( pItem = pDocSh->GetItem( SID_COLOR_TABLE ) ) )
pColorList = static_cast<const SvxColorListItem*>(pItem)->GetColorList();
}