[Libreoffice-commits] core.git: connectivity/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Mon Nov 30 19:30:26 UTC 2020


 connectivity/source/drivers/evoab2/NDriver.cxx |    4 ++--
 connectivity/source/drivers/evoab2/NDriver.hxx |    6 +++++-
 2 files changed, 7 insertions(+), 3 deletions(-)

New commits:
commit cb664a9532b1318eed0594f06222164749f5babf
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Nov 30 15:53:10 2020 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Nov 30 20:29:43 2020 +0100

    loplugin:stringviewparam (Library_evoab)
    
    Change-Id: I0d20cf793df61c4d893ddb2c732118f1d36cfd29
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106894
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/connectivity/source/drivers/evoab2/NDriver.cxx b/connectivity/source/drivers/evoab2/NDriver.cxx
index ab6eb8ee48eb..b8e3c4d4ff88 100644
--- a/connectivity/source/drivers/evoab2/NDriver.cxx
+++ b/connectivity/source/drivers/evoab2/NDriver.cxx
@@ -141,9 +141,9 @@ sal_Int32 SAL_CALL OEvoabDriver::getMinorVersion(  )
     return 0;
 }
 
-bool OEvoabDriver::acceptsURL_Stat( const OUString& url )
+bool OEvoabDriver::acceptsURL_Stat( std::u16string_view url )
 {
-    return ( url == "sdbc:address:evolution:local" || url == "sdbc:address:evolution:groupwise" || url == "sdbc:address:evolution:ldap" ) && EApiInit();
+    return ( url == u"sdbc:address:evolution:local" || url == u"sdbc:address:evolution:groupwise" || url == u"sdbc:address:evolution:ldap" ) && EApiInit();
 }
 
 
diff --git a/connectivity/source/drivers/evoab2/NDriver.hxx b/connectivity/source/drivers/evoab2/NDriver.hxx
index 258c9c0091c0..2780a05ec34d 100644
--- a/connectivity/source/drivers/evoab2/NDriver.hxx
+++ b/connectivity/source/drivers/evoab2/NDriver.hxx
@@ -20,6 +20,10 @@
 #ifndef INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_EVOAB2_NDRIVER_HXX
 #define INCLUDED_CONNECTIVITY_SOURCE_DRIVERS_EVOAB2_NDRIVER_HXX
 
+#include <sal/config.h>
+
+#include <string_view>
+
 #include <com/sun/star/sdbc/XDriver.hpp>
 #include <com/sun/star/lang/XServiceInfo.hpp>
 #include <cppuhelper/compbase.hxx>
@@ -63,7 +67,7 @@ namespace connectivity::evoab
             css::uno::Reference< css::uno::XComponentContext > getComponentContext( ) const { return m_xContext; }
 
             // static methods
-            static bool acceptsURL_Stat( const OUString& url );
+            static bool acceptsURL_Stat( std::u16string_view url );
         };
 }
 


More information about the Libreoffice-commits mailing list