diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-04-18 21:12:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-19 12:11:43 +0200 |
commit | c7428c607c021f361973f0b1fd9e0dcaf45fa932 (patch) | |
tree | 790100c5dddb7aeb8c75b49c2eee0f2c31329a8d /tools | |
parent | 65834914dbc79ab2f4095bf7a47a78f4145afa62 (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 'tools')
-rw-r--r-- | tools/source/generic/config.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/source/generic/config.cxx b/tools/source/generic/config.cxx index 0f2e13acea21..b2eb546c0ef7 100644 --- a/tools/source/generic/config.cxx +++ b/tools/source/generic/config.cxx @@ -647,7 +647,7 @@ void Config::SetGroup(const OString& rGroup) } } -void Config::DeleteGroup(const OString& rGroup) +void Config::DeleteGroup(std::string_view rGroup) { // Update config data if necessary if ( !mpData->mbRead ) @@ -727,7 +727,7 @@ sal_uInt16 Config::GetGroupCount() const return nGroupCount; } -bool Config::HasGroup(const OString& rGroup) const +bool Config::HasGroup(std::string_view rGroup) const { ImplGroupData* pGroup = mpData->mpFirstGroup; bool bRet = false; @@ -825,7 +825,7 @@ void Config::WriteKey(const OString& rKey, const OString& rStr) } } -void Config::DeleteKey(const OString& rKey) +void Config::DeleteKey(std::string_view rKey) { // Update config data if necessary if ( !mpData->mbRead ) |