Permalink
Browse files

CodeViewWidget: Replaces usages of QString::fromStdString with QStrin…

…gLiteral where applicable

There's no need to construct a std::string here, when there's no dynamic
elements to the text.
  • Loading branch information...
lioncash committed May 13, 2018
1 parent 644bbb2 commit bbc0aee5eaf3c9fbc810fdeb8ccb8308fde9021f
Showing with 3 additions and 3 deletions.
  1. +3 −3 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(""));
}
}

0 comments on commit bbc0aee

Please sign in to comment.