diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-22 14:08:08 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-12-27 11:26:32 +0100 |
commit | 9013dc1650aa8400f63da5f584df9058b1740eb3 (patch) | |
tree | a1ba4f196070459d5d823d942e5a0a121b09ea3d /ucb | |
parent | db97e00893c204226a2eab2d95c9837bce3cddb0 (diff) |
Simplify loplugin:stringviewparam comparison operator handling
In practice, it works fine to look at all of them, regardless of actual argument
types.
Change-Id: Ifc49cbcd6003c8837c1b3f81d432c59fb0657bf1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108366
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/cacher/cachedcontentresultset.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ucb/source/cacher/cachedcontentresultset.cxx b/ucb/source/cacher/cachedcontentresultset.cxx index 9e713839e082..04f9d677b9f0 100644 --- a/ucb/source/cacher/cachedcontentresultset.cxx +++ b/ucb/source/cacher/cachedcontentresultset.cxx @@ -33,6 +33,7 @@ #include <cppuhelper/queryinterface.hxx> #include <ucbhelper/macros.hxx> #include <memory> +#include <string_view> using namespace com::sun::star::beans; using namespace com::sun::star::lang; @@ -380,7 +381,7 @@ private: impl_getPos( std::u16string_view rName ) const; static bool - impl_isMyPropertyName( const OUString& rName ); + impl_isMyPropertyName( std::u16string_view rName ); public: explicit CCRS_PropertySetInfo( Reference< @@ -409,8 +410,8 @@ public: }; //some helping variables ( names for my special properties ) -const char g_sPropertyNameForCount[] = "RowCount"; -const char g_sPropertyNameForFinalCount[] = "IsRowCountFinal"; +const char16_t g_sPropertyNameForCount[] = u"RowCount"; +const char16_t g_sPropertyNameForFinalCount[] = u"IsRowCountFinal"; constexpr OUStringLiteral g_sPropertyNameForFetchSize(u"FetchSize"); constexpr OUStringLiteral g_sPropertyNameForFetchDirection(u"FetchDirection"); @@ -574,7 +575,7 @@ bool CCRS_PropertySetInfo //static bool CCRS_PropertySetInfo - ::impl_isMyPropertyName( const OUString& rPropertyName ) + ::impl_isMyPropertyName( std::u16string_view rPropertyName ) { return ( rPropertyName == g_sPropertyNameForCount || rPropertyName == g_sPropertyNameForFinalCount |