summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-04-18 21:12:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-19 12:11:43 +0200
commitc7428c607c021f361973f0b1fd9e0dcaf45fa932 (patch)
tree790100c5dddb7aeb8c75b49c2eee0f2c31329a8d /idl
parent65834914dbc79ab2f4095bf7a47a78f4145afa62 (diff)
use more string_view in OString API
some parts of the OString seem to have fallen behind its more popular sibling OUString. Change-Id: Ie6d64c3005b2df5da49ba79d0c38282dd5057a23 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114252 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idl')
-rw-r--r--idl/inc/hash.hxx2
-rw-r--r--idl/source/cmptools/hash.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/idl/inc/hash.hxx b/idl/inc/hash.hxx
index fb3ba3227b28..67b18b34badb 100644
--- a/idl/inc/hash.hxx
+++ b/idl/inc/hash.hxx
@@ -53,7 +53,7 @@ public:
SvStringHashEntry * Insert( OString const & rElement, sal_uInt32 * pInsertPos );
bool Test( OString const & rElement, sal_uInt32 * pInsertPos );
SvStringHashEntry * Get( sal_uInt32 nInsertPos ) const;
- OString GetNearString( const OString& rName ) const;
+ OString GetNearString( std::string_view rName ) const;
};
#endif // INCLUDED_IDL_INC_HASH_HXX
diff --git a/idl/source/cmptools/hash.cxx b/idl/source/cmptools/hash.cxx
index ef11b489e5ae..c294a1c14755 100644
--- a/idl/source/cmptools/hash.cxx
+++ b/idl/source/cmptools/hash.cxx
@@ -56,7 +56,7 @@ SvStringHashEntry * SvStringHashTable::Get( sal_uInt32 nInsertPos ) const
return it->second.get();
}
-OString SvStringHashTable::GetNearString( const OString& rName ) const
+OString SvStringHashTable::GetNearString( std::string_view rName ) const
{
for( auto const & rPair : maInt2EntryMap )
{