summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-01-11 09:33:09 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-01-11 13:54:25 +0100
commit34870f1882c60f94e67555db09519b01706dae41 (patch)
treebeb8ae06a7f6ce0804e03f97ba686774ce26ab80
parente46c61addd616a80c40e58e021326aa798eb6921 (diff)
Use std::initializer_list ctor
Change-Id: I0238d8f4ae6b92f92f8bb92df33da5552a158cbe
-rw-r--r--writerfilter/qa/cppunittests/rtftok/testrtftok.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/writerfilter/qa/cppunittests/rtftok/testrtftok.cxx b/writerfilter/qa/cppunittests/rtftok/testrtftok.cxx
index 4fc6b7603070..81de6f8d2384 100644
--- a/writerfilter/qa/cppunittests/rtftok/testrtftok.cxx
+++ b/writerfilter/qa/cppunittests/rtftok/testrtftok.cxx
@@ -57,9 +57,10 @@ bool RtfTest::load(const OUString&,
const OUString& rURL, const OUString&,
unsigned int, unsigned int, unsigned int)
{
- uno::Sequence< beans::PropertyValue > aDescriptor(1);
- aDescriptor[0].Name = "URL";
- aDescriptor[0].Value <<= rURL;
+ uno::Sequence< beans::PropertyValue > aDescriptor =
+ {
+ beans::PropertyValue("URL", sal_Int32(0), uno::makeAny(rURL), beans::PropertyState_DIRECT_VALUE)
+ };
try
{
return m_xFilter->filter(aDescriptor);