diff options
Diffstat (limited to 'configmgr/source/data.cxx')
-rw-r--r-- | configmgr/source/data.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configmgr/source/data.cxx b/configmgr/source/data.cxx index 6e95f1665726..6279e02cf096 100644 --- a/configmgr/source/data.cxx +++ b/configmgr/source/data.cxx @@ -148,14 +148,14 @@ sal_Int32 Data::parseSegment( } OUString Data::fullTemplateName( - OUString const & component, OUString const & name) + std::u16string_view component, std::u16string_view name) { - if (component.indexOf(':') != -1 || name.indexOf(':') != -1) { + if (component.find(':') != std::u16string_view::npos || name.find(':') != std::u16string_view::npos) { throw css::uno::RuntimeException( - "bad component/name pair containing colon " + component + "/" + + OUString::Concat("bad component/name pair containing colon ") + component + "/" + name); } - return component + ":" + name; + return OUString::Concat(component) + ":" + name; } bool Data::equalTemplateNames( |