summaryrefslogtreecommitdiff
path: root/unotest
diff options
context:
space:
mode:
Diffstat (limited to 'unotest')
-rw-r--r--unotest/source/cpp/macros_test.cxx6
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;