summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-01-17 16:07:36 +0100
committerMichael Stahl <mstahl@redhat.com>2014-01-17 16:08:09 +0100
commit769778e489722f454fa3d81ffcf73f1934a0a88b (patch)
tree14e5e3739f335b2890a402e6e7d5737c16625473
parentfix up logic to hide empty frames for e.g. field format in dbaccess (diff)
downloadcore-769778e489722f454fa3d81ffcf73f1934a0a88b.tar.gz
core-769778e489722f454fa3d81ffcf73f1934a0a88b.zip
test::BootstrapFixtureBase::getPathFromWorkdir not unused
Change-Id: I4ddad27d1e5a4de9885956b80db37f1e2f80a96e
-rw-r--r--include/unotest/bootstrapfixturebase.hxx3
-rw-r--r--unotest/source/cpp/bootstrapfixturebase.cxx8
2 files changed, 11 insertions, 0 deletions
diff --git a/include/unotest/bootstrapfixturebase.hxx b/include/unotest/bootstrapfixturebase.hxx
index d69be43d013d..c447f4fa626e 100644
--- a/include/unotest/bootstrapfixturebase.hxx
+++ b/include/unotest/bootstrapfixturebase.hxx
@@ -62,9 +62,12 @@ public:
// return a Path to a given c-str path from the source directory
OUString getPathFromSrc( const char *pPath );
+
// return a URL to a given c-str path from the workdir directory
OUString getURLFromWorkdir( const char *pPath );
+ // return a Path to a given c-str path from the workdir directory
+ OUString getPathFromWorkdir( const char *pPath );
virtual void setUp();
virtual void tearDown();
diff --git a/unotest/source/cpp/bootstrapfixturebase.cxx b/unotest/source/cpp/bootstrapfixturebase.cxx
index cc8ae3fa189a..87a72a725eb0 100644
--- a/unotest/source/cpp/bootstrapfixturebase.cxx
+++ b/unotest/source/cpp/bootstrapfixturebase.cxx
@@ -83,6 +83,14 @@ OUString test::BootstrapFixtureBase::getURLFromWorkdir( const char *pPath )
return m_aWorkdirRootURL + OUString::createFromAscii( pPath );
}
+#ifdef _WIN32 // ifdef just to keep it out of unusedcode.easy
+OUString test::BootstrapFixtureBase::getPathFromWorkdir( const char *pPath )
+{
+ return m_aWorkdirRootPath + OUString::createFromAscii( pPath );
+
+}
+#endif
+
void test::BootstrapFixtureBase::setUp()
{
// set UserInstallation to user profile dir in test/user-template