summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-01-28 20:56:22 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-01-31 07:09:41 +0000
commit83b9c51803b3acef078892e4f233339e57dd53e7 (patch)
treeaac70e9e1519463d82ef2a95876db7a36268fa12 /sd/source
parent3187193a6142b4b1c974ae1e1de572fa74a3c8ee (diff)
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>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/view/DocumentRenderer.cxx13
1 files changed, 3 insertions, 10 deletions
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;