Skip to content
Snippets Groups Projects
Commit 2cbc284c authored by Lioncash's avatar Lioncash
Browse files

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.
parent e7e209d9
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#include "common/microprofile.h" #include "common/microprofile.h"
#include "common/scm_rev.h" #include "common/scm_rev.h"
#include "common/string_util.h"
#include "core/core.h" #include "core/core.h"
#include "core/frontend/framebuffer_layout.h" #include "core/frontend/framebuffer_layout.h"
#include "core/settings.h" #include "core/settings.h"
...@@ -107,9 +106,8 @@ private: ...@@ -107,9 +106,8 @@ private:
GRenderWindow::GRenderWindow(QWidget* parent, EmuThread* emu_thread) GRenderWindow::GRenderWindow(QWidget* parent, EmuThread* emu_thread)
: QWidget(parent), child(nullptr), emu_thread(emu_thread) { : QWidget(parent), child(nullptr), emu_thread(emu_thread) {
std::string window_title = fmt::format("yuzu {} | {}-{}", Common::g_build_name, setWindowTitle(QStringLiteral("yuzu %1 | %2-%3")
Common::g_scm_branch, Common::g_scm_desc); .arg(Common::g_build_name, Common::g_scm_branch, Common::g_scm_desc));
setWindowTitle(QString::fromStdString(window_title));
setAttribute(Qt::WA_AcceptTouchEvents); setAttribute(Qt::WA_AcceptTouchEvents);
InputCommon::Init(); InputCommon::Init();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment