[Libreoffice-commits] core.git: sfx2/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Sep 14 10:34:55 UTC 2018


 sfx2/source/doc/guisaveas.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 34f6b7f4529cc5a3b0e286fbd7318c2b7bf9b132
Author:     Michael Weghorn <m.weghorn at posteo.de>
AuthorDate: Fri Sep 14 10:43:43 2018 +0200
Commit:     Michael Weghorn <m.weghorn at posteo.de>
CommitDate: Fri Sep 14 12:34:26 2018 +0200

    Reduce variable scope
    
    Change-Id: Ia5016284c338f5d305d9f7fc92180a770230b446
    Reviewed-on: https://gerrit.libreoffice.org/60479
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.weghorn at posteo.de>

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" )


More information about the Libreoffice-commits mailing list