diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-11-30 15:53:10 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-11-30 20:29:43 +0100 |
commit | cb664a9532b1318eed0594f06222164749f5babf (patch) | |
tree | 0a78b3255e6ed2b71e71ec21403e552adbaf9a98 /connectivity | |
parent | 260a0dcb16f55fd5a33abba64addfa3d250b8581 (diff) |
loplugin:stringviewparam (Library_evoab)
Change-Id: I0d20cf793df61c4d893ddb2c732118f1d36cfd29
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106894
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/evoab2/NDriver.cxx | 4 | ||||
-rw-r--r-- | connectivity/source/drivers/evoab2/NDriver.hxx | 6 |
2 files changed, 7 insertions, 3 deletions
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 ); }; } |