summaryrefslogtreecommitdiff
path: root/sw/qa/core
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-09 13:43:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-09 14:24:00 +0200
commit027b25ecd54ac97ea2471ca73e3ba89ce052fe76 (patch)
treefe8923a13998a96a865027c897273d0edb4d7c62 /sw/qa/core
parentf59e802478e35e7b6f561f24806bca47b604529b (diff)
use comphelper::InitPropertySequence in more places
Change-Id: I72d7b13a23ce306b752b39187a0e9fbb7028643a Reviewed-on: https://gerrit.libreoffice.org/38606 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/qa/core')
-rw-r--r--sw/qa/core/macros-test.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/sw/qa/core/macros-test.cxx b/sw/qa/core/macros-test.cxx
index fa27beca817d..7ee048ad4b70 100644
--- a/sw/qa/core/macros-test.cxx
+++ b/sw/qa/core/macros-test.cxx
@@ -46,6 +46,7 @@
#include <sfx2/sfxmodelfactory.hxx>
#include <svl/intitem.hxx>
#include <comphelper/processfactory.hxx>
+#include <comphelper/propertysequence.hxx>
#include <comphelper/scopeguard.hxx>
#include <basic/sbxdef.hxx>
@@ -410,9 +411,9 @@ void SwMacrosTest::testFdo68983()
utl::TempFile aTempFile;
aTempFile.EnableKillingFile();
- Sequence<beans::PropertyValue> desc(1);
- desc[0].Name = "FilterName";
- desc[0].Value <<= OUString("writer8");
+ Sequence<beans::PropertyValue> desc( comphelper::InitPropertySequence({
+ { "FilterName", Any(OUString("writer8")) }
+ }));
xDocStorable->storeAsURL(aTempFile.GetURL(), desc);
Reference<util::XCloseable>(xComponent, UNO_QUERY_THROW)->close(false);
@@ -443,9 +444,9 @@ void SwMacrosTest::testFdo87530()
utl::TempFile aTempFile;
aTempFile.EnableKillingFile();
- Sequence<beans::PropertyValue> desc(1);
- desc[0].Name = "FilterName";
- desc[0].Value <<= OUString("writer8");
+ Sequence<beans::PropertyValue> desc( comphelper::InitPropertySequence({
+ { "FilterName", Any(OUString("writer8")) }
+ }));
{
// insert initial password protected library