diff options
author | Noel <noelgrandin@gmail.com> | 2020-09-30 09:37:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-30 12:36:51 +0200 |
commit | b29ec8b26bddc03661c527b603863d9e738d1210 (patch) | |
tree | 829f01d36d867f717d4a3c9373842510bbc76e77 /sc/source/ui/docshell/docsh4.cxx | |
parent | 9373320fc88c1582a2ad25bda9c5264c7c58a97e (diff) |
loplugin:reducevarscope in sc
Change-Id: If88c71351fb157b8eab242fceb65422f05eec3d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103645
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/docshell/docsh4.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh4.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index 18e23c4851a3..11beaa2819b7 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -1158,7 +1158,6 @@ void ScDocShell::Execute( SfxRequest& rReq ) break; case SID_LANGUAGE_STATUS: { - sal_Int32 nPos = 0; OUString aLangText; const SfxStringItem* pItem = rReq.GetArg<SfxStringItem>(nSlot); if ( pItem ) @@ -1177,6 +1176,7 @@ void ScDocShell::Execute( SfxRequest& rReq ) ScDocument& rDoc = GetDocument(); rDoc.GetLanguage( eLatin, eCjk, eCtl ); + sal_Int32 nPos = 0; if ( aLangText == "*" ) { SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create(); |