summaryrefslogtreecommitdiffstats
path: root/subsurface-desktop-main.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-03-02 20:29:50 +0100
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-03-14 13:55:36 +0200
commit2105d3c7d00adef2ddce679a43a7a77f95168c7a (patch)
tree187481fead7eead3cd541802399bf952dd63c01f /subsurface-desktop-main.cpp
parentd1572a8d9574e80955796b8667317c8dbd376081 (diff)
downloadsubsurface-2105d3c7d00adef2ddce679a43a7a77f95168c7a.tar.gz
Cleanup: consistently use toUtf8() instead of toLocal8Bit()
These do the same, since the text-codex is set to UTF-8 on startup. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'subsurface-desktop-main.cpp')
-rw-r--r--subsurface-desktop-main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsurface-desktop-main.cpp b/subsurface-desktop-main.cpp
index 765b3e943..a0b55eb5c 100644
--- a/subsurface-desktop-main.cpp
+++ b/subsurface-desktop-main.cpp
@@ -224,7 +224,7 @@ exit:
void messageHandler(QtMsgType type, const QMessageLogContext &ctx, const QString &msg)
{
Q_UNUSED(ctx);
- QByteArray localMsg = msg.toLocal8Bit();
+ QByteArray localMsg = msg.toUtf8();
switch (type) {
case QtDebugMsg:
fprintf(stdout, "%s\n", localMsg.constData());