diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-28 17:56:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-12-29 16:42:33 +0100 |
commit | 042033f1e6da22616cb76c8d950c20c9efecbad5 (patch) | |
tree | 26b3f1f42d067506f44550b410f3fb9640616a5b /include/unotest | |
parent | ccfd8e9d09f9ac0a0ea92d0f378391006faaf934 (diff) |
loplugin:stringviewparam: operator +
Change-Id: I044dd21b63d7eb03224675584fa143009c6b6008
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108418
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
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); } |