diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-13 14:29:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-17 09:57:35 +0100 |
commit | 8ef6067596cf4b2c52fbce94b44bf7af9fefa643 (patch) | |
tree | f4cca1a99ba97683b14fa6fe0f1f45f75bf855c2 /oox | |
parent | 75bada928cf08d2afc6efe52ba99b45088bc9eec (diff) |
loplugin:stringviewparam check methods too
not just functions
Change-Id: Icca295dd159002b428b73f2c95d40725434f04d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105789
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/core/contexthandler.cxx | 2 | ||||
-rw-r--r-- | oox/source/core/relations.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/oox/source/core/contexthandler.cxx b/oox/source/core/contexthandler.cxx index 6eef9029a7d2..ff55f8b07bc7 100644 --- a/oox/source/core/contexthandler.cxx +++ b/oox/source/core/contexthandler.cxx @@ -66,7 +66,7 @@ OUString ContextHandler::getFragmentPathFromRelId( const OUString& rRelId ) cons return mxBaseData->mxRelations->getFragmentPathFromRelId( rRelId ); } -OUString ContextHandler::getFragmentPathFromFirstType( const OUString& rType ) const +OUString ContextHandler::getFragmentPathFromFirstType( std::u16string_view rType ) const { return mxBaseData->mxRelations->getFragmentPathFromFirstType( rType ); } diff --git a/oox/source/core/relations.cxx b/oox/source/core/relations.cxx index cd2570052eb6..bedfc125b675 100644 --- a/oox/source/core/relations.cxx +++ b/oox/source/core/relations.cxx @@ -62,7 +62,7 @@ const Relation* Relations::getRelationFromRelId( const OUString& rId ) const return (aIt == maMap.end()) ? nullptr : &aIt->second; } -const Relation* Relations::getRelationFromFirstType( const OUString& rType ) const +const Relation* Relations::getRelationFromFirstType( std::u16string_view rType ) const { for (auto const& elem : maMap) if( elem.second.maType.equalsIgnoreAsciiCase( rType ) ) @@ -131,7 +131,7 @@ OUString Relations::getFragmentPathFromRelId( const OUString& rRelId ) const return pRelation ? getFragmentPathFromRelation( *pRelation ) : OUString(); } -OUString Relations::getFragmentPathFromFirstType( const OUString& rType ) const +OUString Relations::getFragmentPathFromFirstType( std::u16string_view rType ) const { const Relation* pRelation = getRelationFromFirstType( rType ); return pRelation ? getFragmentPathFromRelation( *pRelation ) : OUString(); |