diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-08-23 18:11:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-08-24 09:28:32 +0200 |
commit | 66604baf08c47cc0c77ab3b9ee7e77f987c64722 (patch) | |
tree | 7bef8f275ffcb9557b97e84707478f0be880406a /unotest/source | |
parent | 844b3c067ccef7c8fcd38f4456689065dee5a447 (diff) |
Consistently use OUString in test::Directories
Change-Id: Ia5fd8af34ee9d2f37e4450ab241f6bb9a06445b2
Reviewed-on: https://gerrit.libreoffice.org/41466
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unotest/source')
-rw-r--r-- | unotest/source/cpp/directories.cxx | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/unotest/source/cpp/directories.cxx b/unotest/source/cpp/directories.cxx index d559dffc2e90..2970b92306f3 100644 --- a/unotest/source/cpp/directories.cxx +++ b/unotest/source/cpp/directories.cxx @@ -41,34 +41,24 @@ test::Directories::Directories() { m_aWorkdirRootURL = getFileURLFromSystemPath(m_aWorkdirRootPath); } -OUString test::Directories::getURLFromSrc( const char *pPath ) -{ - return m_aSrcRootURL + OUString::createFromAscii( pPath ); -} - OUString test::Directories::getURLFromSrc( const OUString& rPath ) { return m_aSrcRootURL + rPath; } -OUString test::Directories::getPathFromSrc( const char *pPath ) -{ - return m_aSrcRootPath + OUString::createFromAscii( pPath ); -} - OUString test::Directories::getPathFromSrc(const OUString& rPath) { return m_aSrcRootPath + rPath;; } -OUString test::Directories::getURLFromWorkdir( const char *pPath ) +OUString test::Directories::getURLFromWorkdir( const OUString& rPath ) { - return m_aWorkdirRootURL + OUString::createFromAscii( pPath ); + return m_aWorkdirRootURL + rPath; } -OUString test::Directories::getPathFromWorkdir( const char *pPath ) +OUString test::Directories::getPathFromWorkdir( const OUString& rPath ) { - return m_aWorkdirRootPath + OUString::createFromAscii( pPath ); + return m_aWorkdirRootPath + rPath; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |