summaryrefslogtreecommitdiff
path: root/ucb/source/cacher
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-11-18 10:10:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-24 09:45:04 +0100
commitbb06f51308428500c9c8d11ae05f0aa03ecc179c (patch)
treeb18620e8572ed6d4c43c8605660d59f5f7a7e531 /ucb/source/cacher
parent42e8e16cf93dcf944e5c1106f76aaa32057c0397 (diff)
loplugin:stringviewparam extend to comparison operators
which means that some call sites have to change to use unicode string literals i.e. u"foo" instead of "foo" Change-Id: Ie51c3adf56d343dd1d1710777f9d2a43ee66221c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106125 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb/source/cacher')
-rw-r--r--ucb/source/cacher/cachedcontentresultset.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/ucb/source/cacher/cachedcontentresultset.cxx b/ucb/source/cacher/cachedcontentresultset.cxx
index 483b7e3fcb74..9e713839e082 100644
--- a/ucb/source/cacher/cachedcontentresultset.cxx
+++ b/ucb/source/cacher/cachedcontentresultset.cxx
@@ -374,10 +374,10 @@ private:
bool
impl_queryProperty(
- const OUString& rName
+ std::u16string_view rName
, css::beans::Property& rProp ) const;
sal_Int32
- impl_getPos( const OUString& rName ) const;
+ impl_getPos( std::u16string_view rName ) const;
static bool
impl_isMyPropertyName( const OUString& rName );
@@ -411,8 +411,8 @@ public:
//some helping variables ( names for my special properties )
const char g_sPropertyNameForCount[] = "RowCount";
const char g_sPropertyNameForFinalCount[] = "IsRowCountFinal";
-const char g_sPropertyNameForFetchSize[] = "FetchSize";
-const char g_sPropertyNameForFetchDirection[] = "FetchDirection";
+constexpr OUStringLiteral g_sPropertyNameForFetchSize(u"FetchSize");
+constexpr OUStringLiteral g_sPropertyNameForFetchDirection(u"FetchDirection");
CCRS_PropertySetInfo::CCRS_PropertySetInfo(
Reference< XPropertySetInfo > const & xInfo )
@@ -543,7 +543,7 @@ sal_Bool SAL_CALL CCRS_PropertySetInfo
sal_Int32 CCRS_PropertySetInfo
- ::impl_getPos( const OUString& rName ) const
+ ::impl_getPos( std::u16string_view rName ) const
{
for( sal_Int32 nN = m_pProperties->getLength(); nN--; )
{
@@ -555,7 +555,7 @@ sal_Int32 CCRS_PropertySetInfo
}
bool CCRS_PropertySetInfo
- ::impl_queryProperty( const OUString& rName, Property& rProp ) const
+ ::impl_queryProperty( std::u16string_view rName, Property& rProp ) const
{
for( const Property& rMyProp : std::as_const(*m_pProperties) )
{