diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2018-09-14 10:43:43 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2018-09-14 12:34:26 +0200 |
commit | 34f6b7f4529cc5a3b0e286fbd7318c2b7bf9b132 (patch) | |
tree | d03e0a27301c84055bb2a4ca7db967c15cfc6da5 /sfx2 | |
parent | 2fdafe62ef3959ec34e05daf312088a8f0534d9a (diff) |
Reduce variable scope
Change-Id: Ia5016284c338f5d305d9f7fc92180a770230b446
Reviewed-on: https://gerrit.libreoffice.org/60479
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/guisaveas.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx index 1fb91642e9cd..d9926d5f299a 100644 --- a/sfx2/source/doc/guisaveas.cxx +++ b/sfx2/source/doc/guisaveas.cxx @@ -870,7 +870,6 @@ bool ModelData_Impl::OutputFileDialog( sal_Int16 nStoreMode, SfxFilterFlags nMust = getMustFlags( nStoreMode ); SfxFilterFlags nDont = getDontFlags( nStoreMode ); - sfx2::FileDialogHelper::Context eCtxt = sfx2::FileDialogHelper::UNKNOWN_CONTEXT; vcl::Window* pWin = SfxStoringHelper::GetModelWindow( m_xModel ); weld::Window* pFrameWin = pWin ? pWin->GetFrameWeld() : nullptr; if ( ( nStoreMode & EXPORT_REQUESTED ) && !( nStoreMode & WIDEEXPORT_REQUESTED ) ) @@ -896,6 +895,7 @@ bool ModelData_Impl::OutputFileDialog( sal_Int16 nStoreMode, pFileDlg.reset(new sfx2::FileDialogHelper( aDialogMode, aDialogFlags, aDocServiceName, nDialog, nMust, nDont, rStandardDir, rBlackList, pFrameWin )); } + sfx2::FileDialogHelper::Context eCtxt = sfx2::FileDialogHelper::UNKNOWN_CONTEXT; if ( aDocServiceName == "com.sun.star.drawing.DrawingDocument" ) eCtxt = sfx2::FileDialogHelper::SD_EXPORT; else if ( aDocServiceName == "com.sun.star.presentation.PresentationDocument" ) |