summaryrefslogtreecommitdiff
path: root/framework/source/uielement/recentfilesmenucontroller.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/uielement/recentfilesmenucontroller.cxx')
-rw-r--r--framework/source/uielement/recentfilesmenucontroller.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/framework/source/uielement/recentfilesmenucontroller.cxx b/framework/source/uielement/recentfilesmenucontroller.cxx
index 5873b4a0164f..2786f3c3ac88 100644
--- a/framework/source/uielement/recentfilesmenucontroller.cxx
+++ b/framework/source/uielement/recentfilesmenucontroller.cxx
@@ -46,8 +46,6 @@ namespace {
static const char CMD_CLEAR_LIST[] = ".uno:ClearRecentFileList";
static const char CMD_OPEN_AS_TEMPLATE[] = ".uno:OpenTemplate";
static const char CMD_OPEN_REMOTE[] = ".uno:OpenRemote";
-static const char CMD_PREFIX[] = "vnd.sun.star.popup:RecentFileList?entry=";
-static const char MENU_SHORTCUT[] = "~N. ";
struct LoadRecentFile
{
@@ -192,7 +190,7 @@ void RecentFilesMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >
aMenuShortCut.append( "1~0. " );
else
{
- aMenuShortCut.append( MENU_SHORTCUT );
+ aMenuShortCut.append( "~N. " );
aMenuShortCut[ 1 ] = sal_Unicode( i + '1' );
}
}
@@ -202,10 +200,7 @@ void RecentFilesMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >
aMenuShortCut.append( ". " );
}
- OUStringBuffer aStrBuffer;
- aStrBuffer.append( CMD_PREFIX );
- aStrBuffer.append( sal_Int32( i ) );
- OUString aURLString( aStrBuffer.makeStringAndClear() );
+ OUString aURLString = "vnd.sun.star.popup:RecentFileList?entry=" + OUString::number(i);
// Abbreviate URL
OUString aMenuTitle;