diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-18 10:10:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-24 09:45:04 +0100 |
commit | bb06f51308428500c9c8d11ae05f0aa03ecc179c (patch) | |
tree | b18620e8572ed6d4c43c8605660d59f5f7a7e531 /forms/source/xforms | |
parent | 42e8e16cf93dcf944e5c1106f76aaa32057c0397 (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 'forms/source/xforms')
-rw-r--r-- | forms/source/xforms/model_helper.hxx | 2 | ||||
-rw-r--r-- | forms/source/xforms/model_ui.cxx | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/forms/source/xforms/model_helper.hxx b/forms/source/xforms/model_helper.hxx index 59056bf26e62..51b65b67127a 100644 --- a/forms/source/xforms/model_helper.hxx +++ b/forms/source/xforms/model_helper.hxx @@ -123,7 +123,7 @@ public: sal_Int32 lcl_findInstance( const InstanceCollection*, - const OUString& ); + std::u16string_view ); // get values from Sequence<PropertyValue> describing an Instance diff --git a/forms/source/xforms/model_ui.cxx b/forms/source/xforms/model_ui.cxx index 0dca32ac5b91..2ce182031579 100644 --- a/forms/source/xforms/model_ui.cxx +++ b/forms/source/xforms/model_ui.cxx @@ -411,7 +411,7 @@ css::uno::Reference<css::xml::dom::XDocument> Model::newInstance( const OUString static sal_Int32 lcl_findProp( const PropertyValue* pValues, sal_Int32 nLength, - const OUString& rName ) + std::u16string_view rName ) { bool bFound = false; sal_Int32 n = 0; @@ -423,7 +423,7 @@ static sal_Int32 lcl_findProp( const PropertyValue* pValues, } sal_Int32 xforms::lcl_findInstance( const InstanceCollection* pInstances, - const OUString& rName ) + std::u16string_view rName ) { sal_Int32 nLength = pInstances->countItems(); sal_Int32 n = 0; @@ -450,7 +450,7 @@ void Model::renameInstance( const OUString& sFrom, PropertyValue* pSeq = aSeq.getArray(); sal_Int32 nLength = aSeq.getLength(); - sal_Int32 nProp = lcl_findProp( pSeq, nLength, "ID" ); + sal_Int32 nProp = lcl_findProp( pSeq, nLength, u"ID" ); if( nProp == -1 ) { // add name property @@ -464,12 +464,12 @@ void Model::renameInstance( const OUString& sFrom, pSeq[ nProp ].Value <<= sTo; // change url - nProp = lcl_findProp( pSeq, nLength, "URL" ); + nProp = lcl_findProp( pSeq, nLength, u"URL" ); if(nProp != -1) pSeq[ nProp ].Value <<= sURL; // change urlonce - nProp = lcl_findProp( pSeq, nLength, "URLOnce" ); + nProp = lcl_findProp( pSeq, nLength, u"URLOnce" ); if(nProp != -1) pSeq[ nProp ].Value <<= bURLOnce; |