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 /unoidl/source/sourcetreeprovider.cxx | |
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 'unoidl/source/sourcetreeprovider.cxx')
-rw-r--r-- | unoidl/source/sourcetreeprovider.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unoidl/source/sourcetreeprovider.cxx b/unoidl/source/sourcetreeprovider.cxx index fea67405cd54..2f115bef44bf 100644 --- a/unoidl/source/sourcetreeprovider.cxx +++ b/unoidl/source/sourcetreeprovider.cxx @@ -231,9 +231,10 @@ rtl::Reference<MapCursor> SourceTreeProvider::createRootCursor() const { return new Cursor(manager_, uri_); } -rtl::Reference<Entity> SourceTreeProvider::findEntity(OUString const & name) +rtl::Reference<Entity> SourceTreeProvider::findEntity(std::u16string_view _name) const { + OUString name(_name); std::map< OUString, rtl::Reference<Entity> >::iterator ci( cache_.find(name)); if (ci != cache_.end()) { |