[Libreoffice-commits] core.git: unotest/source
Stephan Bergmann
sbergman at redhat.com
Wed Apr 1 07:51:28 PDT 2015
unotest/source/cpp/macros_test.cxx | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
New commits:
commit 29bb3a68ea9b485d4e2cc8244a4b5f4475002a98
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Apr 1 16:48:28 2015 +0200
simplify
Change-Id: Ib88ccd6ea430791f18571ad7d6a34d7432477050
diff --git a/unotest/source/cpp/macros_test.cxx b/unotest/source/cpp/macros_test.cxx
index aab1f44..cf23ee4 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;
More information about the Libreoffice-commits
mailing list