summaryrefslogtreecommitdiff
path: root/svx/source/form
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 /svx/source/form
parentab20a5888d3a7f964ef2fb3afe2477825da6037e (diff)
Initialize Sequence<beans::NamedValue> from initializer_lists
Change-Id: I216dcbd983dcf3df79df9fda371b93114540a9d8
Diffstat (limited to 'svx/source/form')
-rw-r--r--svx/source/form/formcontrolling.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/svx/source/form/formcontrolling.cxx b/svx/source/form/formcontrolling.cxx
index 6fcf0a7b6782..d04b2c5a0840 100644
--- a/svx/source/form/formcontrolling.cxx
+++ b/svx/source/form/formcontrolling.cxx
@@ -309,10 +309,7 @@ namespace svx
void FormControllerHelper::execute( sal_Int32 _nSlotId, const OUString& _rParamName, const Any& _rParamValue ) const
{
- Sequence< NamedValue > aArguments(1);
- aArguments[0].Name = _rParamName;
- aArguments[0].Value = _rParamValue;
-
+ Sequence< NamedValue > aArguments { { _rParamName, _rParamValue } };
impl_operateForm_nothrow( EXECUTE_ARGS, FeatureSlotTranslation::getFormFeatureForSlotId( _nSlotId ), aArguments );
}