diff options
author | Lioncash <mathew1800@gmail.com> | 2018-10-24 08:10:56 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-10-24 08:14:26 -0400 |
commit | 2cbc284c2bac4cf7e6bf1bbd3fa903d722af6217 (patch) | |
tree | bf2dec83abd08def4383e2f4582cddd5a992b357 | |
parent | e7e209d9001967319fb4cba374ee9c750adf1fb6 (diff) |
bootmanager: Use QStringLiteral instead of std::string to represent the window title
This gets rid of an unnecessary type conversion. We can just use the
regular QStringLiteral to already format the string as the type
setWindowTitle accepts instead of converting from a std::string
instance.
-rw-r--r-- | src/yuzu/bootmanager.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index e8ab23326..39eef8858 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -8,7 +8,6 @@ #include "common/microprofile.h" #include "common/scm_rev.h" -#include "common/string_util.h" #include "core/core.h" #include "core/frontend/framebuffer_layout.h" #include "core/settings.h" @@ -107,9 +106,8 @@ private: GRenderWindow::GRenderWindow(QWidget* parent, EmuThread* emu_thread) : QWidget(parent), child(nullptr), emu_thread(emu_thread) { - std::string window_title = fmt::format("yuzu {} | {}-{}", Common::g_build_name, - Common::g_scm_branch, Common::g_scm_desc); - setWindowTitle(QString::fromStdString(window_title)); + setWindowTitle(QStringLiteral("yuzu %1 | %2-%3") + .arg(Common::g_build_name, Common::g_scm_branch, Common::g_scm_desc)); setAttribute(Qt::WA_AcceptTouchEvents); InputCommon::Init(); |