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 /cui/source | |
parent | ab20a5888d3a7f964ef2fb3afe2477825da6037e (diff) |
Initialize Sequence<beans::NamedValue> from initializer_lists
Change-Id: I216dcbd983dcf3df79df9fda371b93114540a9d8
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/hlmarkwn.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/dialogs/hlmarkwn.cxx b/cui/source/dialogs/hlmarkwn.cxx index 71532bb2faed..247cea9321e9 100644 --- a/cui/source/dialogs/hlmarkwn.cxx +++ b/cui/source/dialogs/hlmarkwn.cxx @@ -610,11 +610,11 @@ IMPL_LINK_NOARG_TYPED(SvxHlinkDlgMarkWnd, ClickCloseHdl_Impl, Button*, void) } } - uno::Sequence< beans::NamedValue > aSettings(2); - aSettings[0].Name = TG_SETTING_LASTMARK; - aSettings[0].Value <<= sLastSelectedMark; - aSettings[1].Name = TG_SETTING_LASTPATH; - aSettings[1].Value <<= comphelper::containerToSequence<OUString>(aLastSelectedPath); + uno::Sequence< beans::NamedValue > aSettings + { + { TG_SETTING_LASTMARK, css::uno::makeAny(sLastSelectedMark) }, + { TG_SETTING_LASTPATH, css::uno::makeAny(comphelper::containerToSequence<OUString>(aLastSelectedPath)) } + }; // write SvtViewOptions aViewSettings( E_DIALOG, TG_SETTING_MANAGER ); |