From 5efc15f0006866ac4c422c1b2bde173ded47893f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 27 Jul 2013 17:01:36 +0100 Subject: reduce use of UniString from ResID ctor Change-Id: I8d7619e7807ff2d400ec5c7fd181375130245728 --- framework/source/uielement/recentfilesmenucontroller.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/source/uielement/recentfilesmenucontroller.cxx') diff --git a/framework/source/uielement/recentfilesmenucontroller.cxx b/framework/source/uielement/recentfilesmenucontroller.cxx index 47f08687d9cd..7b01a110db80 100644 --- a/framework/source/uielement/recentfilesmenucontroller.cxx +++ b/framework/source/uielement/recentfilesmenucontroller.cxx @@ -176,16 +176,16 @@ void RecentFilesMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu > pVCLPopupMenu->InsertSeparator(); // Clear List menu entry pVCLPopupMenu->InsertItem( sal_uInt16( nCount + 1 ), - String( FwkResId( STR_CLEAR_RECENT_FILES ) ) ); + FWK_RESSTR(STR_CLEAR_RECENT_FILES) ); pVCLPopupMenu->SetItemCommand( sal_uInt16( nCount + 1 ), OUString( RTL_CONSTASCII_USTRINGPARAM( CMD_CLEAR_LIST ) ) ); pVCLPopupMenu->SetHelpText( sal_uInt16( nCount + 1 ), - String( FwkResId( STR_CLEAR_RECENT_FILES_HELP ) ) ); + FWK_RESSTR(STR_CLEAR_RECENT_FILES_HELP) ); } else { // No recent documents => insert "no document" string - pVCLPopupMenu->InsertItem( 1, String( FwkResId( STR_NODOCUMENT ) ) ); + pVCLPopupMenu->InsertItem( 1, FWK_RESSTR(STR_NODOCUMENT) ); // Do not disable it, otherwise the Toolbar controller and MenuButton // will display SV_RESID_STRING_NOSELECTIONPOSSIBLE instead of STR_NODOCUMENT pVCLPopupMenu->SetItemBits( 1, pVCLPopupMenu->GetItemBits( 1 ) | MIB_NOSELECT ); -- cgit