summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-22 14:21:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-22 14:44:06 +0200
commitc2092e4da40d6767649b5c33761c3698c1f84a6c (patch)
tree9b80a610e416d1441fe18060d142e7bb4acdec2b
parent64cb1d10fffccebbc825c858083f13eb717b0553 (diff)
fix master after string_view patches..
crossed paths Change-Id: I066b357dc10e2109658194b3b3682b7083ebbbbf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133322 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--cppuhelper/source/typemanager.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cppuhelper/source/typemanager.cxx b/cppuhelper/source/typemanager.cxx
index 28f831f0627c..1ceb63b11996 100644
--- a/cppuhelper/source/typemanager.cxx
+++ b/cppuhelper/source/typemanager.cxx
@@ -1873,7 +1873,7 @@ css::uno::Any cppuhelper::TypeManager::find(OUString const & name) {
}
i = name.lastIndexOf('.');
if (i != -1) {
- std::u16string_view parent(name.subView(0, i));
+ OUString parent(name.copy(0, i));
ent = findEntity(parent);
if (ent.is()) {
switch (ent->getSort()) {
@@ -2072,7 +2072,7 @@ void cppuhelper::TypeManager::readRdbFile(
std::u16string_view uri, bool optional)
{
try {
- manager_->addProvider(uri);
+ manager_->addProvider(OUString(uri));
} catch (unoidl::NoSuchFileException &) {
if (!optional) {
throw css::uno::DeploymentException(