summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-12-26 10:03:40 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2021-12-26 20:36:26 +0100
commita23a7eea5cfcdc50d09be248828cb1e6293e5ebb (patch)
treee415782b558350673175f80836d022c4882c9a7d /desktop
parentcc517c687de7205487936d40b64481107656f239 (diff)
Avoid OUStringBuffer::toString where possible
Change-Id: I99abbe97a48b2077e28d6221fb70036e5e412657 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127479 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/crashreport.cxx2
-rw-r--r--desktop/source/migration/migration.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/app/crashreport.cxx b/desktop/source/app/crashreport.cxx
index 7d70c9603d9a..a14527c621e2 100644
--- a/desktop/source/app/crashreport.cxx
+++ b/desktop/source/app/crashreport.cxx
@@ -202,7 +202,7 @@ OUString CrashReporter::getLoggedUnoCommands()
aUnoCommandBuffer.append(unocommand);
aCommandSeperator=",";
}
- return aUnoCommandBuffer.toString();
+ return aUnoCommandBuffer.makeStringAndClear();
}
namespace {
diff --git a/desktop/source/migration/migration.cxx b/desktop/source/migration/migration.cxx
index c846eaa673fd..7d3b272973be 100644
--- a/desktop/source/migration/migration.cxx
+++ b/desktop/source/migration/migration.cxx
@@ -670,7 +670,7 @@ void MigrationImpl::copyConfig()
buf.append(enc);
} while (n >= 0);
buf.append(".xcu");
- regFilePath = buf.toString();
+ regFilePath = buf.makeStringAndClear();
}
configuration::Update::get(
comphelper::getProcessComponentContext())->