summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app/docsh2.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-09-30 09:38:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-09-30 12:32:18 +0200
commit9373320fc88c1582a2ad25bda9c5264c7c58a97e (patch)
treeee2df8944d7af2080498b991ed46429e0a020947 /sw/source/uibase/app/docsh2.cxx
parent37b81dd54a915223780a6b5efa54ce45db332604 (diff)
loplugin:reducevarscope in sw
Change-Id: Ifed7220c6acf7049b2985f1911a806b37a54d794 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103646 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/app/docsh2.cxx')
-rw-r--r--sw/source/uibase/app/docsh2.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/app/docsh2.cxx b/sw/source/uibase/app/docsh2.cxx
index fa2b9ac9d63e..13c15a461832 100644
--- a/sw/source/uibase/app/docsh2.cxx
+++ b/sw/source/uibase/app/docsh2.cxx
@@ -520,7 +520,6 @@ void SwDocShell::Execute(SfxRequest& rReq)
static bool bPage = false;
static bool bNum = false;
static bool bMerge = false;
- sal_uInt16 nRet = USHRT_MAX;
SfxTemplateFlags nFlags = bFrame ? SfxTemplateFlags::LOAD_FRAME_STYLES : SfxTemplateFlags::NONE;
if(bPage)
@@ -550,7 +549,7 @@ void SwDocShell::Execute(SfxRequest& rReq)
SfxNewFileDialog aNewFileDlg(GetView()->GetFrameWeld(), SfxNewFileDialogMode::LoadTemplate);
aNewFileDlg.SetTemplateFlags(nFlags);
- nRet = aNewFileDlg.run();
+ sal_uInt16 nRet = aNewFileDlg.run();
if(RET_TEMPLATE_LOAD == nRet)
{
FileDialogHelper aDlgHelper(TemplateDescription::FILEOPEN_SIMPLE,