diff options
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/typemanager.cxx | 4 | ||||
-rw-r--r-- | cppuhelper/source/typemanager.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cppuhelper/source/typemanager.cxx b/cppuhelper/source/typemanager.cxx index 0b19954f92d5..44105df033fa 100644 --- a/cppuhelper/source/typemanager.cxx +++ b/cppuhelper/source/typemanager.cxx @@ -2102,7 +2102,7 @@ css::uno::Any cppuhelper::TypeManager::getInstantiatedStruct( OUString const & name, sal_Int32 separator) { assert(name.indexOf('<') == separator && separator != -1); - rtl::Reference< unoidl::Entity > ent(findEntity(name.subView(0, separator))); + rtl::Reference< unoidl::Entity > ent(findEntity(name.copy(0, separator))); if (!ent.is() || (ent->getSort() != unoidl::Entity::SORT_POLYMORPHIC_STRUCT_TYPE_TEMPLATE)) @@ -2289,7 +2289,7 @@ css::uno::Any cppuhelper::TypeManager::getConstant( } rtl::Reference< unoidl::Entity > cppuhelper::TypeManager::findEntity( - std::u16string_view name) + OUString const & name) { try { return manager_->findEntity(name); diff --git a/cppuhelper/source/typemanager.hxx b/cppuhelper/source/typemanager.hxx index 615495ca7f80..28c193191267 100644 --- a/cppuhelper/source/typemanager.hxx +++ b/cppuhelper/source/typemanager.hxx @@ -115,7 +115,7 @@ private: rtl::Reference< unoidl::ConstantGroupEntity > const & entity, OUString const & member); - rtl::Reference< unoidl::Entity > findEntity(std::u16string_view name); + rtl::Reference< unoidl::Entity > findEntity(OUString const & name); rtl::Reference< unoidl::Manager > manager_; }; |