summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-09-27 14:26:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-09-27 14:26:51 +0200
commit5063e39261fb9c9568b56a2a6ff8949fb8230042 (patch)
tree56ce140ffaee45f1f9db0522d9db9db1283335fe
parent9eaf9877f38f3c9fea3d292015a875052f20d2ec (diff)
getURLFromWorkdir should actually return a URL
Change-Id: Id6d67f820226da15d90b95aa047767926583cc2e
-rw-r--r--dbaccess/qa/extras/dialog-save.cxx2
-rw-r--r--unotest/source/cpp/bootstrapfixturebase.cxx3
2 files changed, 3 insertions, 2 deletions
diff --git a/dbaccess/qa/extras/dialog-save.cxx b/dbaccess/qa/extras/dialog-save.cxx
index 9278d38a8849..a373452ff682 100644
--- a/dbaccess/qa/extras/dialog-save.cxx
+++ b/dbaccess/qa/extras/dialog-save.cxx
@@ -65,7 +65,7 @@ DialogSaveTest::DialogSaveTest()
void DialogSaveTest::test()
{
OUString aFileName;
- aFileName = "file://" + getURLFromWorkdir("/CppunitTest/testDialogSave.odb");
+ aFileName = getURLFromWorkdir("/CppunitTest/testDialogSave.odb");
{
uno::Reference< lang::XComponent > xComponent = loadFromDesktop(aFileName);
CPPUNIT_ASSERT(xComponent.is());
diff --git a/unotest/source/cpp/bootstrapfixturebase.cxx b/unotest/source/cpp/bootstrapfixturebase.cxx
index 98f76f406b32..56d023d1bd48 100644
--- a/unotest/source/cpp/bootstrapfixturebase.cxx
+++ b/unotest/source/cpp/bootstrapfixturebase.cxx
@@ -23,7 +23,8 @@ using namespace ::com::sun::star;
// heavy lifting is deferred until setUp. setUp and tearDown are interleaved
// between the tests as you might expect.
test::BootstrapFixtureBase::BootstrapFixtureBase()
- : m_aSrcRootURL("file://"), m_aSolverRootURL( m_aSrcRootURL )
+ : m_aSrcRootURL("file://"), m_aSolverRootURL( m_aSrcRootURL ),
+ m_aWorkdirRootURL(m_aSrcRootURL)
{
#ifndef ANDROID
const char* pSrcRoot = getenv( "SRC_ROOT" );