diff options
author | Swachhand Lokhande <swachhandl95@gmail.com> | 2015-03-07 18:58:49 +0530 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-10 10:26:59 +0000 |
commit | b1534edf523a405b91ad04c5351735e745ceb7ee (patch) | |
tree | 936b938dab11100b532f3b9204891d162c334bef /chart2/qa | |
parent | bb2728fd246716588d135c9e159135b1c5a7d3e1 (diff) |
tdf#89592 Using initializer_lists to populate Sequence<PropertyValue>
Change-Id: Idef9dd55eb1719eaf592bc4a86440cbd5aa4fb32
Reviewed-on: https://gerrit.libreoffice.org/14781
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'chart2/qa')
-rw-r--r-- | chart2/qa/extras/charttest.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chart2/qa/extras/charttest.hxx b/chart2/qa/extras/charttest.hxx index ad2cd5579c77..e640118d0cb5 100644 --- a/chart2/qa/extras/charttest.hxx +++ b/chart2/qa/extras/charttest.hxx @@ -13,6 +13,7 @@ #include <test/bootstrapfixture.hxx> #include <unotest/macros_test.hxx> #include <comphelper/processfactory.hxx> +#include <comphelper/propertysequence.hxx> #include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/frame/Desktop.hpp> @@ -120,9 +121,9 @@ void ChartTest::load( const OUString& aDir, const OUString& aName ) boost::shared_ptr<utl::TempFile> ChartTest::reload(const OUString& rFilterName) { uno::Reference<frame::XStorable> xStorable(mxComponent, uno::UNO_QUERY); - uno::Sequence<beans::PropertyValue> aArgs(1); - aArgs[0].Name = "FilterName"; - aArgs[0].Value <<= rFilterName; + auto aArgs(::comphelper::InitPropertySequence({ + { "FilterName", makeAny(rFilterName) } + })); boost::shared_ptr<utl::TempFile> pTempFile = boost::make_shared<utl::TempFile>(); pTempFile->EnableKillingFile(); xStorable->storeToURL(pTempFile->GetURL(), aArgs); |