summaryrefslogtreecommitdiff
path: root/unotest
diff options
context:
space:
mode:
Diffstat (limited to 'unotest')
-rw-r--r--unotest/source/cpp/officeconnection.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/unotest/source/cpp/officeconnection.cxx b/unotest/source/cpp/officeconnection.cxx
index 3791dddf8703..e8ccd66a4729 100644
--- a/unotest/source/cpp/officeconnection.cxx
+++ b/unotest/source/cpp/officeconnection.cxx
@@ -59,6 +59,9 @@ OfficeConnection::OfficeConnection(): process_(0) {}
OfficeConnection::~OfficeConnection() {}
void OfficeConnection::setUp() {
+ css::uno::Reference< css::bridge::XUnoUrlResolver > resolver(
+ css::bridge::UnoUrlResolver::create(
+ cppu::defaultBootstrap_InitialComponentContext()));
rtl::OUString desc;
rtl::OUString argSoffice;
CPPUNIT_ASSERT(
@@ -119,9 +122,6 @@ void OfficeConnection::setUp() {
"\"soffice\" argument starts with neither \"path:\" nor"
" \"connect:\"");
}
- css::uno::Reference< css::bridge::XUnoUrlResolver > resolver(
- css::bridge::UnoUrlResolver::create(
- cppu::defaultBootstrap_InitialComponentContext()));
for (;;) {
try {
context_ =