sfx2/source/dialog/filedlghelper.cxx | 12 ++++++------ sfx2/source/dialog/filedlgimpl.hxx | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-)
New commits: commit 04d7c46b0585a730452b8b5f2ed010096df9a3a8 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Thu Apr 20 12:45:53 2023 +0200 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Thu Apr 20 15:15:52 2023 +0200 Typo getCurentSfxFilter->getCurrentSfxFilter in sfx2/filedgimpl-helper Change-Id: Ia428e81e9ebefcac521354d1eccb39f891fa9656 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150685 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx index 1cab715a79ff..5b799bc4e169 100644 --- a/sfx2/source/dialog/filedlghelper.cxx +++ b/sfx2/source/dialog/filedlghelper.cxx @@ -357,7 +357,7 @@ void FileDialogHelper_Impl::SaveLastUsedFilter() Any( getFilterWithExtension( getFilter() ) ) ); } -std::shared_ptr<const SfxFilter> FileDialogHelper_Impl::getCurentSfxFilter() +std::shared_ptr<const SfxFilter> FileDialogHelper_Impl::getCurrentSfxFilter() { OUString aFilterName = getCurrentFilterUIName(); @@ -445,7 +445,7 @@ void FileDialogHelper_Impl::updateFilterOptionsBox() updateExtendedControl( ExtendedFilePickerElementIds::CHECKBOX_FILTEROPTIONS, - CheckFilterOptionsCapability( getCurentSfxFilter() ) + CheckFilterOptionsCapability( getCurrentSfxFilter() ) ); } @@ -469,7 +469,7 @@ void FileDialogHelper_Impl::updateExportButton() OUString sLabel = maButtonLabel; // filter with options -> append ellipses on export button label - if ( CheckFilterOptionsCapability( getCurentSfxFilter() ) ) + if ( CheckFilterOptionsCapability( getCurrentSfxFilter() ) ) sLabel += "..."; if ( sOldLabel != sLabel ) @@ -501,7 +501,7 @@ void FileDialogHelper_Impl::updateSelectionBox() if ( bSelectionBoxFound ) { - std::shared_ptr<const SfxFilter> pFilter = getCurentSfxFilter(); + std::shared_ptr<const SfxFilter> pFilter = getCurrentSfxFilter(); mbSelectionFltrEnabled = updateExtendedControl( ExtendedFilePickerElementIds::CHECKBOX_SELECTION, ( mbSelectionEnabled && pFilter && ( pFilter->GetFilterFlags() & SfxFilterFlags::SUPPORTSSELECTION ) ) ); @@ -517,7 +517,7 @@ void FileDialogHelper_Impl::enablePasswordBox( bool bInit ) bool bWasEnabled = mbIsPwdEnabled; - std::shared_ptr<const SfxFilter> pCurrentFilter = getCurentSfxFilter(); + std::shared_ptr<const SfxFilter> pCurrentFilter = getCurrentSfxFilter(); mbIsPwdEnabled = updateExtendedControl( ExtendedFilePickerElementIds::CHECKBOX_PASSWORD, pCurrentFilter && ( pCurrentFilter->GetFilterFlags() & SfxFilterFlags::ENCRYPTION ) @@ -1517,7 +1517,7 @@ ErrCode FileDialogHelper_Impl::execute( std::vector<OUString>& rpURLList, // set the filter getRealFilter( rFilter ); - std::shared_ptr<const SfxFilter> pCurrentFilter = getCurentSfxFilter(); + std::shared_ptr<const SfxFilter> pCurrentFilter = getCurrentSfxFilter(); // fill the rpURLList implGetAndCacheFiles( mxFileDlg, rpURLList ); diff --git a/sfx2/source/dialog/filedlgimpl.hxx b/sfx2/source/dialog/filedlgimpl.hxx index e5910790cc01..20a4cc42f382 100644 --- a/sfx2/source/dialog/filedlgimpl.hxx +++ b/sfx2/source/dialog/filedlgimpl.hxx @@ -112,7 +112,7 @@ namespace sfx2 void loadConfig(); void saveConfig(); - std::shared_ptr<const SfxFilter> getCurentSfxFilter(); + std::shared_ptr<const SfxFilter> getCurrentSfxFilter(); bool updateExtendedControl( sal_Int16 _nExtendedControlId, bool _bEnable ); ErrCode getGraphic( const OUString& rURL, Graphic& rGraphic ) const;