summaryrefslogtreecommitdiff
path: root/unoidl/source/unoidl-read.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-28 17:56:40 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-12-29 16:42:33 +0100
commit042033f1e6da22616cb76c8d950c20c9efecbad5 (patch)
tree26b3f1f42d067506f44550b410f3fb9640616a5b /unoidl/source/unoidl-read.cxx
parentccfd8e9d09f9ac0a0ea92d0f378391006faaf934 (diff)
loplugin:stringviewparam: operator +
Change-Id: I044dd21b63d7eb03224675584fa143009c6b6008 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108418 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unoidl/source/unoidl-read.cxx')
-rw-r--r--unoidl/source/unoidl-read.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/unoidl/source/unoidl-read.cxx b/unoidl/source/unoidl-read.cxx
index 2b733c0f6f31..443cade3ea07 100644
--- a/unoidl/source/unoidl-read.cxx
+++ b/unoidl/source/unoidl-read.cxx
@@ -14,6 +14,7 @@
#include <iostream>
#include <map>
#include <set>
+#include <string_view>
#include <utility>
#include <vector>
@@ -214,7 +215,7 @@ void insertTypeDependency(
void scanMap(
rtl::Reference<unoidl::Manager> const & manager,
rtl::Reference<unoidl::MapCursor> const & cursor, bool published,
- OUString const & prefix, std::map<OUString, Entity> & entities)
+ std::u16string_view prefix, std::map<OUString, Entity> & entities)
{
assert(cursor.is());
for (;;) {
@@ -228,7 +229,7 @@ void scanMap(
scanMap(
manager,
static_cast<unoidl::ModuleEntity *>(ent.get())->createCursor(),
- published, name + ".", entities);
+ published, OUString(name + "."), entities);
} else {
std::map<OUString, Entity>::iterator i(
entities.insert(
@@ -1040,7 +1041,7 @@ SAL_IMPLEMENT_MAIN() {
}
}
std::map<OUString, Entity> ents;
- scanMap(mgr, prov->createRootCursor(), published, "", ents);
+ scanMap(mgr, prov->createRootCursor(), published, u"", ents);
std::vector<OUString> sorted(sort(ents));
std::vector<OUString> mods;
for (const auto & i: sorted) {