summaryrefslogtreecommitdiff
path: root/unoidl/source/sourcefileprovider.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-21 12:53:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-21 13:53:26 +0200
commit2d9291b9433c9645b0870525211f74bfb1151555 (patch)
tree53cb623e805899ea01e4ee65fd7c5eac27dd1934 /unoidl/source/sourcefileprovider.cxx
parent9ac36f0ecba806b51e6d1cb4cf8d92fe062508f4 (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/sourcefileprovider.cxx')
-rw-r--r--unoidl/source/sourcefileprovider.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/unoidl/source/sourcefileprovider.cxx b/unoidl/source/sourcefileprovider.cxx
index 983b7d3c3403..e487fcf47590 100644
--- a/unoidl/source/sourcefileprovider.cxx
+++ b/unoidl/source/sourcefileprovider.cxx
@@ -15,6 +15,7 @@
#include "sourcefileprovider.hxx"
#include "sourceprovider-scanner.hxx"
+#include <o3tl/string_view.hxx>
namespace unoidl::detail {
@@ -105,12 +106,12 @@ rtl::Reference<MapCursor> SourceFileProvider::createRootCursor() const {
return new Cursor(rootMap_);
}
-rtl::Reference<Entity> SourceFileProvider::findEntity(OUString const & name)
+rtl::Reference<Entity> SourceFileProvider::findEntity(std::u16string_view name)
const
{
std::map< OUString, rtl::Reference<Entity> > const * map = &rootMap_;
for (sal_Int32 i = 0;;) {
- OUString id(name.getToken(0, '.', i));
+ OUString id(o3tl::getToken(name, 0, '.', i));
std::map< OUString, rtl::Reference<Entity> >::const_iterator j(
map->find(id));
if (j == map->end()) {