diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/CommandInfoProvider.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/CommandInfoProvider.cxx b/sfx2/source/sidebar/CommandInfoProvider.cxx index 6eb30d75647f..1abaed1ea7fc 100644 --- a/sfx2/source/sidebar/CommandInfoProvider.cxx +++ b/sfx2/source/sidebar/CommandInfoProvider.cxx @@ -241,8 +241,7 @@ OUString CommandInfoProvider::RetrieveShortcutsFromConfiguration( { try { - Sequence<OUString> aCommands(1); - aCommands[0] = rsCommandName; + Sequence<OUString> aCommands { rsCommandName }; Sequence<Any> aKeyCodes (rxConfiguration->getPreferredKeyEventsForCommandList(aCommands)); if (aCommands.getLength() == 1) |