diff options
author | Hexagon12 <Hexagon12@users.noreply.github.com> | 2019-05-19 14:49:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-19 14:49:54 +0100 |
commit | 209a0dfa35aa54ae68b37189ade006dc5051090e (patch) | |
tree | 0bf3852372448d9109af0eea83f5b374898336f0 /src/yuzu/debugger/profiler.cpp | |
parent | 27033de2e56f2666d69e53d990ed5f0f5f3e6ede (diff) | |
parent | d77d1a02074c4319fe6360207e2c36758fe330dd (diff) |
Merge pull request #2492 from lioncash/debugger
yuzu/debugger: Specify string conversions explicitly
Diffstat (limited to 'src/yuzu/debugger/profiler.cpp')
-rw-r--r-- | src/yuzu/debugger/profiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/debugger/profiler.cpp b/src/yuzu/debugger/profiler.cpp index 86e03e46d..f594ef076 100644 --- a/src/yuzu/debugger/profiler.cpp +++ b/src/yuzu/debugger/profiler.cpp @@ -47,7 +47,7 @@ private: #endif MicroProfileDialog::MicroProfileDialog(QWidget* parent) : QWidget(parent, Qt::Dialog) { - setObjectName("MicroProfile"); + setObjectName(QStringLiteral("MicroProfile")); setWindowTitle(tr("MicroProfile")); resize(1000, 600); // Remove the "?" button from the titlebar and enable the maximize button @@ -191,7 +191,7 @@ void MicroProfileDrawText(int x, int y, u32 hex_color, const char* text, u32 tex for (u32 i = 0; i < text_length; ++i) { // Position the text baseline 1 pixel above the bottom of the text cell, this gives nice // vertical alignment of text for a wide range of tested fonts. - mp_painter->drawText(x, y + MICROPROFILE_TEXT_HEIGHT - 2, QChar(text[i])); + mp_painter->drawText(x, y + MICROPROFILE_TEXT_HEIGHT - 2, QString{QLatin1Char{text[i]}}); x += MICROPROFILE_TEXT_WIDTH + 1; } } |