From e4c30ac9c50bf102184bb8e2a90de0acdea042ee Mon Sep 17 00:00:00 2001 From: Noel Date: Wed, 2 Dec 2020 09:50:54 +0200 Subject: convert EHistoryType to scoped enum Change-Id: I115fc0ed81d6392d3649757727c4d9468213619d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107046 Tested-by: Jenkins Reviewed-by: Noel Grandin --- framework/source/uielement/recentfilesmenucontroller.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'framework') diff --git a/framework/source/uielement/recentfilesmenucontroller.cxx b/framework/source/uielement/recentfilesmenucontroller.cxx index b775835d3a4e..3d79087be85d 100644 --- a/framework/source/uielement/recentfilesmenucontroller.cxx +++ b/framework/source/uielement/recentfilesmenucontroller.cxx @@ -127,7 +127,7 @@ void RecentFilesMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu > if ( !pVCLPopupMenu ) return; - Sequence< Sequence< PropertyValue > > aHistoryList = SvtHistoryOptions().GetList( ePICKLIST ); + Sequence< Sequence< PropertyValue > > aHistoryList = SvtHistoryOptions().GetList( EHistoryType::PickList ); int nPickListMenuItems = std::min( aHistoryList.getLength(), MAX_MENU_ITEMS ); m_aRecentFilesItems.clear(); @@ -292,7 +292,7 @@ void SAL_CALL RecentFilesMenuController::itemSelected( const css::awt::MenuEvent if ( aCommand == CMD_CLEAR_LIST ) { - SvtHistoryOptions().Clear( ePICKLIST ); + SvtHistoryOptions().Clear( EHistoryType::PickList ); dispatchCommand( "vnd.org.libreoffice.recentdocs:ClearRecentFileList", css::uno::Sequence< css::beans::PropertyValue >() ); -- cgit