diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-28 13:55:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-29 08:57:08 +0200 |
commit | 7cdbde4867b14ae382262dc394ba83e609a8eecf (patch) | |
tree | 5fa180d35a8423a7857b0d57355f74a6d26b5bec /framework/source/uielement/togglebuttontoolbarcontroller.cxx | |
parent | ab20a5888d3a7f964ef2fb3afe2477825da6037e (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.cxx | 8 |
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 ); |