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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user