summaryrefslogtreecommitdiff
path: root/framework/source/uielement/comboboxtoolbarcontroller.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/comboboxtoolbarcontroller.cxx
parentab20a5888d3a7f964ef2fb3afe2477825da6037e (diff)
Initialize Sequence<beans::NamedValue> from initializer_lists
Change-Id: I216dcbd983dcf3df79df9fda371b93114540a9d8
Diffstat (limited to 'framework/source/uielement/comboboxtoolbarcontroller.cxx')
-rw-r--r--framework/source/uielement/comboboxtoolbarcontroller.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/source/uielement/comboboxtoolbarcontroller.cxx b/framework/source/uielement/comboboxtoolbarcontroller.cxx
index a7ad8a36d529..5a8277f1c6d3 100644
--- a/framework/source/uielement/comboboxtoolbarcontroller.cxx
+++ b/framework/source/uielement/comboboxtoolbarcontroller.cxx
@@ -284,9 +284,7 @@ void ComboboxToolbarController::executeControlCommand( const css::frame::Control
m_pComboBox->InsertEntry( 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 );