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/codemaker | |
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/codemaker')
-rw-r--r-- | include/codemaker/commoncpp.hxx | 2 | ||||
-rw-r--r-- | include/codemaker/commonjava.hxx | 4 | ||||
-rw-r--r-- | include/codemaker/typemanager.hxx | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/include/codemaker/commoncpp.hxx b/include/codemaker/commoncpp.hxx index dc1b61c6b32c..9c55fcc6a5d5 100644 --- a/include/codemaker/commoncpp.hxx +++ b/include/codemaker/commoncpp.hxx @@ -53,7 +53,7 @@ enum class IdentifierTranslationMode { }; rtl::OString translateUnoToCppIdentifier( - rtl::OString const & identifier, rtl::OString const & prefix, + rtl::OString const & identifier, std::string_view prefix, IdentifierTranslationMode transmode = IdentifierTranslationMode::Global, rtl::OString const * forbidden = nullptr); diff --git a/include/codemaker/commonjava.hxx b/include/codemaker/commonjava.hxx index 11e1446bf64a..10d7c28ba576 100644 --- a/include/codemaker/commonjava.hxx +++ b/include/codemaker/commonjava.hxx @@ -22,6 +22,8 @@ #include <sal/config.h> +#include <string_view> + #include <codemaker/unotype.hxx> namespace rtl { class OString; } @@ -33,7 +35,7 @@ rtl::OString translateUnoToJavaType( bool referenceType); rtl::OString translateUnoToJavaIdentifier( - rtl::OString const & identifier, rtl::OString const & prefix); + rtl::OString const & identifier, std::string_view prefix); } diff --git a/include/codemaker/typemanager.hxx b/include/codemaker/typemanager.hxx index f76fbb4ca7ea..3e6f67fe4b3f 100644 --- a/include/codemaker/typemanager.hxx +++ b/include/codemaker/typemanager.hxx @@ -52,7 +52,7 @@ public: rtl::Reference< unoidl::MapCursor > * cursor = nullptr) const; codemaker::UnoType::Sort decompose( - OUString const & name, bool resolveTypedefs, OUString * nucleus, + std::u16string_view name, bool resolveTypedefs, OUString * nucleus, sal_Int32 * rank, std::vector< OUString > * arguments, rtl::Reference< unoidl::Entity > * entity) const; |