diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-05-13 18:11:06 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-05-13 18:11:09 -0400 |
| commit | bbc0aee5eaf3c9fbc810fdeb8ccb8308fde9021f (patch) | |
| tree | 75d3dcc9736029307fc19cd6bb9d03b8afd21315 /Source | |
| parent | 644bbb29f3d351cfa6bdbc03577c376f3e917970 (diff) | |
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.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp | 6 |
1 files 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("")); } } |
