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 /svx/source/sidebar | |
parent | ab20a5888d3a7f964ef2fb3afe2477825da6037e (diff) |
Initialize Sequence<beans::NamedValue> from initializer_lists
Change-Id: I216dcbd983dcf3df79df9fda371b93114540a9d8
Diffstat (limited to 'svx/source/sidebar')
-rw-r--r-- | svx/source/sidebar/line/LineWidthPopup.cxx | 5 | ||||
-rw-r--r-- | svx/source/sidebar/text/TextCharacterSpacingPopup.cxx | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/svx/source/sidebar/line/LineWidthPopup.cxx b/svx/source/sidebar/line/LineWidthPopup.cxx index dcef64e798f6..2dfb136211f6 100644 --- a/svx/source/sidebar/line/LineWidthPopup.cxx +++ b/svx/source/sidebar/line/LineWidthPopup.cxx @@ -59,9 +59,8 @@ void LineWidthPopup::PopupModeEndCallback() if (pControl->IsCloseByEdit()) { SvtViewOptions aWinOpt( E_WINDOW, SIDEBAR_LINE_WIDTH_GLOBAL_VALUE ); - ::com::sun::star::uno::Sequence < ::com::sun::star::beans::NamedValue > aSeq(1); - aSeq[0].Name = "LineWidth"; - aSeq[0].Value <<= ::rtl::OUString::number(pControl->GetTmpCustomWidth()); + css::uno::Sequence < css::beans::NamedValue > aSeq + { { "LineWidth", css::uno::makeAny(OUString::number(pControl->GetTmpCustomWidth())) } }; aWinOpt.SetUserData( aSeq ); } } diff --git a/svx/source/sidebar/text/TextCharacterSpacingPopup.cxx b/svx/source/sidebar/text/TextCharacterSpacingPopup.cxx index b8840b06ab59..c32de3082ccd 100644 --- a/svx/source/sidebar/text/TextCharacterSpacingPopup.cxx +++ b/svx/source/sidebar/text/TextCharacterSpacingPopup.cxx @@ -57,9 +57,8 @@ void TextCharacterSpacingPopup::PopupModeEndCallback() if( pControl->GetLastCustomState() == SPACING_CLOSE_BY_CUS_EDIT) { SvtViewOptions aWinOpt( E_WINDOW, SIDEBAR_SPACING_GLOBAL_VALUE ); - ::com::sun::star::uno::Sequence < ::com::sun::star::beans::NamedValue > aSeq(1); - aSeq[0].Name = "Spacing"; - aSeq[0].Value <<= ::rtl::OUString::number(pControl->GetLastCustomValue()); + css::uno::Sequence < css::beans::NamedValue > aSeq + { { "Spacing", css::uno::makeAny(OUString::number(pControl->GetLastCustomValue())) } }; aWinOpt.SetUserData( aSeq ); } |