summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/profilezone.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/misc/profilezone.cxx')
-rw-r--r--comphelper/source/misc/profilezone.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/comphelper/source/misc/profilezone.cxx b/comphelper/source/misc/profilezone.cxx
index 8f82331dd41b..f9284b1f4a51 100644
--- a/comphelper/source/misc/profilezone.cxx
+++ b/comphelper/source/misc/profilezone.cxx
@@ -11,6 +11,7 @@
#include <atomic>
#include <iostream>
+#include <string_view>
#include <comphelper/sequence.hxx>
#include <comphelper/profilezone.hxx>
@@ -58,7 +59,7 @@ long long addRecording(const char * aProfileId, long long aCreateTime)
OUString sRecordingData(OUString::number(osl_getThreadIdentifier(nullptr)) + " " +
OUString::number(aTime/1000000.0) + " " + aString + ": " +
- (aCreateTime == 0 ? OUStringLiteral(u"start") : OUStringLiteral(u"stop")) +
+ (aCreateTime == 0 ? std::u16string_view(u"start") : std::u16string_view(u"stop")) +
(aCreateTime != 0 ? (" " + OUString::number((aTime - aCreateTime)/1000.0) + " ms") : OUString("")));
::osl::MutexGuard aGuard( g_aMutex );