diff options
author | Michaël Lefèvre <lefevre00@yahoo.fr> | 2015-09-21 15:11:57 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-09-23 07:29:33 +0000 |
commit | 92c8d74c543aa94cd512369072975dca7006d5b3 (patch) | |
tree | eb7fe0edfa601a3062f3756274b26502021cdf69 /desktop/source | |
parent | 3e27df1035677c7cca5200858d5d8e8283bf7aa9 (diff) |
CppCheck : reduce variables scope
Change-Id: Ief402017b693a4337f330fb07bb7a6dc6e749f72
Reviewed-on: https://gerrit.libreoffice.org/18753
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 'desktop/source')
-rw-r--r-- | desktop/source/lib/init.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index d86a84eb1172..fc5562022db2 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -563,7 +563,6 @@ static void doc_iniUnoCommands () }; util::URL aCommandURL; - const SfxSlot* pSlot = NULL; SfxViewShell* pViewShell = SfxViewShell::Current(); SfxViewFrame* pViewFrame = pViewShell? pViewShell->GetViewFrame(): NULL; @@ -579,6 +578,8 @@ static void doc_iniUnoCommands () for (sal_uInt32 nIterator = 0; nIterator < SAL_N_ELEMENTS(sUnoCommands); nIterator++) { + const SfxSlot* pSlot = NULL; + aCommandURL.Complete = sUnoCommands[nIterator]; xParser->parseStrict(aCommandURL); pSlot = rSlotPool.GetUnoSlot(aCommandURL.Path); |