summaryrefslogtreecommitdiff
path: root/codemaker/source/commoncpp/commoncpp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'codemaker/source/commoncpp/commoncpp.cxx')
-rw-r--r--codemaker/source/commoncpp/commoncpp.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/codemaker/source/commoncpp/commoncpp.cxx b/codemaker/source/commoncpp/commoncpp.cxx
index efe0dd0b48bf..c7dc2bdeb26c 100644
--- a/codemaker/source/commoncpp/commoncpp.cxx
+++ b/codemaker/source/commoncpp/commoncpp.cxx
@@ -87,7 +87,7 @@ OString translateUnoToCppType(
}
OString translateUnoToCppIdentifier(
- OString const & unoIdentifier, OString const & prefix,
+ OString const & unoIdentifier, std::string_view prefix,
IdentifierTranslationMode transmode, OString const * forbidden)
{
if (// Keywords:
@@ -287,7 +287,7 @@ OString translateUnoToCppIdentifier(
|| unoIdentifier == "NDEBUG"
|| (forbidden != nullptr && unoIdentifier == *forbidden) )
{
- return prefix + "_" + unoIdentifier;
+ return OString::Concat(prefix) + "_" + unoIdentifier;
} else {
return unoIdentifier;
}