diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-01 16:48:28 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-01 16:48:28 +0200 |
commit | 29bb3a68ea9b485d4e2cc8244a4b5f4475002a98 (patch) | |
tree | f5b09ee58d66c2b6deeafa143013eeeb232bcc74 /unotest/source | |
parent | 7ddd6c008142a6b88878ffc96f5e339a0fddd7d9 (diff) |
simplify
Change-Id: Ib88ccd6ea430791f18571ad7d6a34d7432477050
Diffstat (limited to 'unotest/source')
-rw-r--r-- | unotest/source/cpp/macros_test.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/unotest/source/cpp/macros_test.cxx b/unotest/source/cpp/macros_test.cxx index aab1f445644d..cf23ee4d1e83 100644 --- a/unotest/source/cpp/macros_test.cxx +++ b/unotest/source/cpp/macros_test.cxx @@ -45,11 +45,7 @@ uno::Reference<css::lang::XComponent> MacrosTest::loadFromDesktop(const OUString args.push_back(aValue); } - if (rExtraArgs.getLength() > 0) - { - for (int i = 0; i < rExtraArgs.getLength(); i++) - args.push_back(rExtraArgs[i]); - } + args.insert(args.end(), rExtraArgs.begin(), rExtraArgs.end()); uno::Reference<lang::XComponent> xComponent = xLoader->loadComponentFromURL(rURL, OUString("_default"), 0, comphelper::containerToSequence(args)); OUString sMessage = "loading failed: " + rURL; |