summaryrefslogtreecommitdiff
path: root/unoidl
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-10-11 10:23:28 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-10-11 12:46:01 +0200
commit3d236177be255b2027a997bfc12fe0833ca9a2f7 (patch)
treed67582e355bccb43cf133c1857f5dd6136be2f35 /unoidl
parent6c65c62c26a8aa4d04466545f8f04ec86b797012 (diff)
Deduplicate O(U)StringConcatenation
And use an overloaded helper function with a better (?) unified name to show that the result is not an O(U)String. Change-Id: I8956338b05d02bf46a6185828130ea8ef145d46b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141203 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'unoidl')
-rw-r--r--unoidl/source/unoidl-check.cxx4
-rw-r--r--unoidl/source/unoidl-read.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/unoidl/source/unoidl-check.cxx b/unoidl/source/unoidl-check.cxx
index 892793eab395..fdeb74441fc1 100644
--- a/unoidl/source/unoidl-check.cxx
+++ b/unoidl/source/unoidl-check.cxx
@@ -175,7 +175,7 @@ void checkMap(
OUString name(prefix + id);
if (entA->getSort() == unoidl::Entity::SORT_MODULE) {
checkMap(
- providerB, OUStringConcatenation(name + "."),
+ providerB, Concat2View(name + "."),
(static_cast<unoidl::ModuleEntity *>(entA.get())
->createCursor()),
ignoreUnpublished);
@@ -921,7 +921,7 @@ void checkIds(
switch (entB->getSort()) {
case unoidl::Entity::SORT_MODULE:
checkIds(
- providerA, OUStringConcatenation(name + "."),
+ providerA, Concat2View(name + "."),
(static_cast<unoidl::ModuleEntity *>(entB.get())
->createCursor()));
break;
diff --git a/unoidl/source/unoidl-read.cxx b/unoidl/source/unoidl-read.cxx
index 283c660ce974..721fdabe9c8b 100644
--- a/unoidl/source/unoidl-read.cxx
+++ b/unoidl/source/unoidl-read.cxx
@@ -240,7 +240,7 @@ void scanMap(
scanMap(
manager,
static_cast<unoidl::ModuleEntity *>(ent.get())->createCursor(), modules,
- published, OUStringConcatenation(name + "."), p, entities);
+ published, Concat2View(name + "."), p, entities);
} else {
auto const pub = static_cast<unoidl::PublishableEntity *>(ent.get())->isPublished();
std::map<OUString, Entity>::iterator i(