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>
This commit is contained in:
Stephan Bergmann
2020-12-29 16:42:33 +01:00
parent ccfd8e9d09
commit 042033f1e6
631 changed files with 4168 additions and 3491 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ OString translateUnoToJavaType(
}
OString translateUnoToJavaIdentifier(
OString const & identifier, OString const & prefix)
OString const & identifier, std::string_view prefix)
{
if (identifier == "abstract"
|| identifier == "assert" // since Java 1.4
@@ -124,7 +124,7 @@ OString translateUnoToJavaIdentifier(
|| identifier == "volatile"
|| identifier == "while")
{
return prefix + "_" + identifier;
return OString::Concat(prefix) + "_" + identifier;
} else {
return identifier;
}