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 /stoc | |
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 'stoc')
-rw-r--r-- | stoc/source/implementationregistration/implreg.cxx | 12 | ||||
-rw-r--r-- | stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/stoc/source/implementationregistration/implreg.cxx b/stoc/source/implementationregistration/implreg.cxx index d5813d7ad725..d6c80d16b5dc 100644 --- a/stoc/source/implementationregistration/implreg.cxx +++ b/stoc/source/implementationregistration/implreg.cxx @@ -210,7 +210,7 @@ void prepareLink( const Reference < XSimpleRegistry > & xDest, OUString searchImplForLink( const Reference < XRegistryKey > & xRootKey, const OUString& linkName, - const OUString& implName ) + std::u16string_view implName ) // throw ( InvalidRegistryException, RuntimeException ) { Reference < XRegistryKey > xKey = xRootKey->openKey( slash_IMPLEMENTATIONS ); @@ -349,7 +349,7 @@ bool deleteSubEntry(const Reference < XRegistryKey >& xSuperKey, const OUString& void prepareUserLink(const Reference < XSimpleRegistry >& xDest, const OUString& linkName, const OUString& linkTarget, - const OUString& implName) + std::u16string_view implName) { Reference < XRegistryKey > xRootKey = xDest->getRootKey(); @@ -399,7 +399,7 @@ void deletePathIfPossible(const Reference < XRegistryKey >& xRootKey, void deleteUserLink(const Reference < XRegistryKey >& xRootKey, const OUString& linkName, - const OUString& linkTarget, + std::u16string_view linkTarget, const OUString& implName) // throw ( InvalidRegistryException, RuntimeException ) { @@ -571,7 +571,7 @@ void prepareUserKeys(const Reference < XSimpleRegistry >& xDest, void deleteAllImplementations( const Reference < XSimpleRegistry >& xReg, const Reference < XRegistryKey >& xSource, - const OUString& locationUrl, + std::u16string_view locationUrl, std::vector<OUString> & implNames) // throw (InvalidRegistryException, RuntimeException) { @@ -1091,7 +1091,7 @@ private: // helper methods CannotRegisterImplementationException, RuntimeException ) */ static void doRevoke( const Reference < XSimpleRegistry >& xDest, - const OUString& locationUrl ); + std::u16string_view locationUrl ); // throw( InvalidRegistryException, RuntimeException ) Reference< XSimpleRegistry > getRegistryFromServiceManager() const; @@ -1452,7 +1452,7 @@ Sequence< OUString > ImplementationRegistration::checkInstantiation(const OUStri void ImplementationRegistration::doRevoke( const Reference < XSimpleRegistry >& xDest, - const OUString& locationUrl) + std::u16string_view locationUrl) // throw ( InvalidRegistryException, RuntimeException ) { if( !xDest.is() ) diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx index 960ecbcd16a8..958e728d76cf 100644 --- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx +++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx @@ -261,7 +261,7 @@ public: private: virtual ~UrlReference() override {} - sal_Int32 findParameter(OUString const & key) const; + sal_Int32 findParameter(std::u16string_view key) const; stoc::uriproc::UriReference m_base; }; @@ -330,7 +330,7 @@ void UrlReference::setParameter(OUString const & key, OUString const & value) m_base.m_path = newPath.makeStringAndClear(); } -sal_Int32 UrlReference::findParameter(OUString const & key) const { +sal_Int32 UrlReference::findParameter(std::u16string_view key) const { sal_Int32 i = 0; parsePart(m_base.m_path, true, &i); // skip name for (;;) { |