Kaydet (Commit) 34f6b7f4 authored tarafından Michael Weghorn's avatar Michael Weghorn

Reduce variable scope

Change-Id: Ia5016284c338f5d305d9f7fc92180a770230b446
Reviewed-on: https://gerrit.libreoffice.org/60479
Tested-by: Jenkins
Reviewed-by: 's avatarMichael Weghorn <m.weghorn@posteo.de>
üst 2fdafe62
...@@ -870,7 +870,6 @@ bool ModelData_Impl::OutputFileDialog( sal_Int16 nStoreMode, ...@@ -870,7 +870,6 @@ bool ModelData_Impl::OutputFileDialog( sal_Int16 nStoreMode,
SfxFilterFlags nMust = getMustFlags( nStoreMode ); SfxFilterFlags nMust = getMustFlags( nStoreMode );
SfxFilterFlags nDont = getDontFlags( nStoreMode ); SfxFilterFlags nDont = getDontFlags( nStoreMode );
sfx2::FileDialogHelper::Context eCtxt = sfx2::FileDialogHelper::UNKNOWN_CONTEXT;
vcl::Window* pWin = SfxStoringHelper::GetModelWindow( m_xModel ); vcl::Window* pWin = SfxStoringHelper::GetModelWindow( m_xModel );
weld::Window* pFrameWin = pWin ? pWin->GetFrameWeld() : nullptr; weld::Window* pFrameWin = pWin ? pWin->GetFrameWeld() : nullptr;
if ( ( nStoreMode & EXPORT_REQUESTED ) && !( nStoreMode & WIDEEXPORT_REQUESTED ) ) if ( ( nStoreMode & EXPORT_REQUESTED ) && !( nStoreMode & WIDEEXPORT_REQUESTED ) )
...@@ -896,6 +895,7 @@ bool ModelData_Impl::OutputFileDialog( sal_Int16 nStoreMode, ...@@ -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 )); 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" ) if ( aDocServiceName == "com.sun.star.drawing.DrawingDocument" )
eCtxt = sfx2::FileDialogHelper::SD_EXPORT; eCtxt = sfx2::FileDialogHelper::SD_EXPORT;
else if ( aDocServiceName == "com.sun.star.presentation.PresentationDocument" ) else if ( aDocServiceName == "com.sun.star.presentation.PresentationDocument" )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment