cppuhelper/source/factory.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit c0ec38fe54499b9d9940a85d3592671bc543958f
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Tue Apr 26 10:49:34 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Apr 26 12:48:13 2022 +0200

    revert unnecessary change
    
    from
        commit 25ada1e520b50247aa27fdbb6f1ab35e678c7ef9
        Author: Noel Grandin <noel.gran...@collabora.co.uk>
        Date:   Thu Apr 21 13:59:07 2022 +0200
        use more string_view in cppuhelper
    
    Change-Id: Ie5bd9226dca0f222edd0798b8b478054eda5162c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133430
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/cppuhelper/source/factory.cxx b/cppuhelper/source/factory.cxx
index 98ac7e6a3746..e6b920858160 100644
--- a/cppuhelper/source/factory.cxx
+++ b/cppuhelper/source/factory.cxx
@@ -701,7 +701,7 @@ Reference< XInterface > 
ORegistryFactoryHelper::createInstanceWithArgumentsAndCo
 Reference< XInterface > ORegistryFactoryHelper::createModuleFactory()
 {
     OUString aActivatorUrl;
-    std::u16string_view aActivatorName;
+    OUString aActivatorName;
     OUString aLocation;
 
     Reference<XRegistryKey > xActivatorKey = xImplementationKey->openKey(
@@ -744,9 +744,9 @@ Reference< XInterface > 
ORegistryFactoryHelper::createModuleFactory()
     }
 
     Reference< XInterface > xFactory;
-    if( !aActivatorName.empty() )
+    if( !aActivatorName.isEmpty() )
     {
-        Reference<XInterface > x = xSMgr->createInstance( 
OUString(aActivatorName) );
+        Reference<XInterface > x = xSMgr->createInstance( aActivatorName );
         Reference<XImplementationLoader > xLoader( x, UNO_QUERY );
         if (xLoader.is())
         {

Reply via email to