diff options
Diffstat (limited to 'include/unotest')
-rw-r--r-- | include/unotest/directories.hxx | 10 | ||||
-rw-r--r-- | include/unotest/filters-test.hxx | 6 | ||||
-rw-r--r-- | include/unotest/gettestargument.hxx | 6 |
3 files changed, 16 insertions, 6 deletions
diff --git a/include/unotest/directories.hxx b/include/unotest/directories.hxx index 4fcf7fe3cbba..efdcd93a6acf 100644 --- a/include/unotest/directories.hxx +++ b/include/unotest/directories.hxx @@ -12,6 +12,8 @@ #include <sal/config.h> +#include <string_view> + #include <rtl/ustring.hxx> #include <unotest/detail/unotestdllapi.hxx> @@ -32,16 +34,16 @@ public: const OUString& getSrcRootPath() const { return m_aSrcRootPath; } // return a URL to a given path from the source directory - OUString getURLFromSrc(const OUString& rPath) const; + OUString getURLFromSrc(std::u16string_view rPath) const; // return a Path to a given path from the source directory - OUString getPathFromSrc(const OUString& rPath) const; + OUString getPathFromSrc(std::u16string_view rPath) const; // return a URL to a given path from the workdir directory - OUString getURLFromWorkdir(const OUString& rPath) const; + OUString getURLFromWorkdir(std::u16string_view rPath) const; // return a Path to a given path from the workdir directory - OUString getPathFromWorkdir(const OUString& rPath) const; + OUString getPathFromWorkdir(std::u16string_view rPath) const; }; } diff --git a/include/unotest/filters-test.hxx b/include/unotest/filters-test.hxx index 5af991e04d47..01570b78637a 100644 --- a/include/unotest/filters-test.hxx +++ b/include/unotest/filters-test.hxx @@ -10,6 +10,10 @@ #ifndef INCLUDED_UNOTEST_FILTERS_TEST_HXX #define INCLUDED_UNOTEST_FILTERS_TEST_HXX +#include <sal/config.h> + +#include <string_view> + #include <comphelper/documentconstants.hxx> #include <rtl/ustring.hxx> #include <unotest/detail/unotestdllapi.hxx> @@ -39,7 +43,7 @@ public: //filter name const OUString &rFilter, //root dir of test files, must contain pass, fail, indeterminate - const OUString &rURL, + std::u16string_view rURL, //additional filter data for SfxFilter const OUString &rUserData = OUString(), //SfxFilterFlags for SfxFilter diff --git a/include/unotest/gettestargument.hxx b/include/unotest/gettestargument.hxx index 734b77e57b8a..3b6291725316 100644 --- a/include/unotest/gettestargument.hxx +++ b/include/unotest/gettestargument.hxx @@ -20,6 +20,10 @@ #ifndef INCLUDED_UNOTEST_GETTESTARGUMENT_HXX #define INCLUDED_UNOTEST_GETTESTARGUMENT_HXX +#include <sal/config.h> + +#include <string_view> + #include <rtl/ustring.hxx> #include <unotest/detail/unotestdllapi.hxx> @@ -29,7 +33,7 @@ namespace test { // Obtain the value of a test argument (tunneled in via an "arg-testarg.<name>" // bootstrap variable): OOO_DLLPUBLIC_UNOTEST bool getTestArgument( - OUString const & name, OUString * value); + std::u16string_view name, OUString * value); } |