diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-21 12:53:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-21 13:53:26 +0200 |
commit | 2d9291b9433c9645b0870525211f74bfb1151555 (patch) | |
tree | 53cb623e805899ea01e4ee65fd7c5eac27dd1934 /codemaker | |
parent | 9ac36f0ecba806b51e6d1cb4cf8d92fe062508f4 (diff) |
use more string_view in unoidl,codemaker
Change-Id: Ibc0624a662c98ef1308a3bb0c7c082935a89a25c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133252
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'codemaker')
-rw-r--r-- | codemaker/source/codemaker/typemanager.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/codemaker/source/codemaker/typemanager.cxx b/codemaker/source/codemaker/typemanager.cxx index 194840ca9d5b..c684d048782b 100644 --- a/codemaker/source/codemaker/typemanager.cxx +++ b/codemaker/source/codemaker/typemanager.cxx @@ -33,15 +33,15 @@ TypeManager::TypeManager(): manager_(new unoidl::Manager) {} TypeManager::~TypeManager() {} -void TypeManager::loadProvider(OUString const & uri, bool primary) { +void TypeManager::loadProvider(std::u16string_view uri, bool primary) { rtl::Reference< unoidl::Provider > prov(manager_->addProvider(uri)); if (primary) { primaryProviders_.push_back(prov); } } -bool TypeManager::foundAtPrimaryProvider(OUString const & name) const { - if (name.isEmpty()) { +bool TypeManager::foundAtPrimaryProvider(std::u16string_view name) const { + if (name.empty()) { return !primaryProviders_.empty(); } for (const rtl::Reference< unoidl::Provider >& xProvider : primaryProviders_) @@ -51,7 +51,7 @@ bool TypeManager::foundAtPrimaryProvider(OUString const & name) const { } } if (!manager_->findEntity(name).is()) { - throw CannotDumpException("Unknown entity '" + name + "'"); + throw CannotDumpException(OUString::Concat("Unknown entity '") + name + "'"); } return false; } |