summaryrefslogtreecommitdiff
path: root/framework/source/uielement/togglebuttontoolbarcontroller.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-28 13:55:01 +0200
committerNoel Grandin <noel@peralex.com>2015-10-29 08:57:08 +0200
commit7cdbde4867b14ae382262dc394ba83e609a8eecf (patch)
tree5fa180d35a8423a7857b0d57355f74a6d26b5bec /framework/source/uielement/togglebuttontoolbarcontroller.cxx
parentab20a5888d3a7f964ef2fb3afe2477825da6037e (diff)
Initialize Sequence<beans::NamedValue> from initializer_lists
Change-Id: I216dcbd983dcf3df79df9fda371b93114540a9d8
Diffstat (limited to 'framework/source/uielement/togglebuttontoolbarcontroller.cxx')
-rw-r--r--framework/source/uielement/togglebuttontoolbarcontroller.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/framework/source/uielement/togglebuttontoolbarcontroller.cxx b/framework/source/uielement/togglebuttontoolbarcontroller.cxx
index c4eef604393a..c590764656c2 100644
--- a/framework/source/uielement/togglebuttontoolbarcontroller.cxx
+++ b/framework/source/uielement/togglebuttontoolbarcontroller.cxx
@@ -144,9 +144,7 @@ void ToggleButtonToolbarController::executeControlCommand( const css::frame::Con
m_aDropdownMenuList.push_back( aList[j] );
// send notification
- uno::Sequence< beans::NamedValue > aInfo( 1 );
- aInfo[0].Name = "List";
- aInfo[0].Value <<= aList;
+ uno::Sequence< beans::NamedValue > aInfo { { "List", css::uno::makeAny(aList) } };
addNotifyInfo( OUString( "ListChanged" ),
getDispatchFromCommand( m_aCommandURL ),
aInfo );
@@ -171,9 +169,7 @@ void ToggleButtonToolbarController::executeControlCommand( const css::frame::Con
m_aCurrentSelection = m_aDropdownMenuList[nPos];
// send notification
- uno::Sequence< beans::NamedValue > aInfo( 1 );
- aInfo[0].Name = "ItemChecked";
- aInfo[0].Value <<= nPos;
+ uno::Sequence< beans::NamedValue > aInfo { { "ItemChecked", css::uno::makeAny(nPos) } };
addNotifyInfo( OUString( "Pos" ),
getDispatchFromCommand( m_aCommandURL ),
aInfo );