summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
diff options
context:
space:
mode:
authorConnor McLaughlin <stenzek@gmail.com>2019-08-08 12:25:30 +1000
committerGitHub <noreply@github.com>2019-08-08 12:25:30 +1000
commit1bd8f033627ceef8479cb549447782ae860574c2 (patch)
treebfa6fa96843079b448ca9230488a8031b742b714 /Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
parent1092efa77ae302fc677ebb67cdf2f93024b93f79 (diff)
parentfef1b84f0a587dc285af6659cb64042e34e54223 (diff)
Merge pull request #8271 from lioncash/qstring
DolphinQt: Replace unnecessary QStringLiterals with alternatives where applicable
Diffstat (limited to 'Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
index dda5915fc5..ee0e17e26a 100644
--- a/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
+++ b/Source/Core/DolphinQt/Config/GeckoCodeWidget.cpp
@@ -280,8 +280,8 @@ void GeckoCodeWidget::UpdateList()
const auto& code = m_gecko_codes[i];
auto* item = new QListWidgetItem(QString::fromStdString(code.name)
- .replace(QStringLiteral("&lt;"), QStringLiteral("<"))
- .replace(QStringLiteral("&gt;"), QStringLiteral(">")));
+ .replace(QStringLiteral("&lt;"), QChar::fromLatin1('<'))
+ .replace(QStringLiteral("&gt;"), QChar::fromLatin1('>')));
item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsUserCheckable |
Qt::ItemIsDragEnabled);