From 83b9c51803b3acef078892e4f233339e57dd53e7 Mon Sep 17 00:00:00 2001 From: Noel Grandin <noelgrandin@gmail.com> Date: Thu, 28 Jan 2016 20:56:22 +0200 Subject: sequence->vector in PrinterOptionsHelper Change-Id: I643519397a4e714e3407ec0c3a10d329654b9f7d Reviewed-on: https://gerrit.libreoffice.org/21887 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> --- sd/source/ui/view/DocumentRenderer.cxx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'sd/source') diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index b30ddb7da52a..4686f3e1a320 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -344,16 +344,9 @@ namespace { ProcessResource(); } - Sequence< beans::PropertyValue > GetDialogControls() const + const std::vector< beans::PropertyValue >& GetDialogControls() const { - if (maProperties.empty()) - return Sequence< beans::PropertyValue >(); - else - { - return Sequence<beans::PropertyValue>( - &maProperties.front(), - maProperties.size()); - } + return maProperties; } std::vector<sal_Int32> GetSlidesPerPage() const @@ -1258,7 +1251,7 @@ public: css::uno::Sequence<css::beans::PropertyValue> aProperties (3); aProperties[0].Name = "ExtraPrintUIOptions"; - aProperties[0].Value <<= m_aUIProperties; + aProperties[0].Value <<= comphelper::containerToSequence(m_aUIProperties); aProperties[1].Name = "PageSize"; aProperties[1].Value <<= maPrintSize; -- cgit