From bbc0aee5eaf3c9fbc810fdeb8ccb8308fde9021f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 13 May 2018 18:11:06 -0400 Subject: [PATCH] CodeViewWidget: Replaces usages of QString::fromStdString with QStringLiteral where applicable There's no need to construct a std::string here, when there's no dynamic elements to the text. --- Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp index abeb49d80c..198202b424 100644 --- a/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp @@ -395,12 +395,12 @@ void CodeViewWidget::OnSelectionChanged() { if (m_address == PowerPC::ppcState.pc) { - setStyleSheet(QString::fromStdString( - "QTableView::item:selected {background-color: #00FF00; color: #000000;}")); + setStyleSheet( + QStringLiteral("QTableView::item:selected {background-color: #00FF00; color: #000000;}")); } else if (!styleSheet().isEmpty()) { - setStyleSheet(QString::fromStdString("")); + setStyleSheet(QStringLiteral("")); } }