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

yuzu/game_list_worker: Specify string conversions explicitly

Allows the game list worker code to compile successfully with implicit
string conversions disabled.
parent 7a82d6f3
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ bool HasSupportedFileExtension(const std::string& file_name) { ...@@ -45,7 +45,7 @@ bool HasSupportedFileExtension(const std::string& file_name) {
} }
bool IsExtractedNCAMain(const std::string& file_name) { bool IsExtractedNCAMain(const std::string& file_name) {
return QFileInfo(QString::fromStdString(file_name)).fileName() == "main"; return QFileInfo(QString::fromStdString(file_name)).fileName() == QStringLiteral("main");
} }
QString FormatGameName(const std::string& physical_name) { QString FormatGameName(const std::string& physical_name) {
...@@ -97,7 +97,7 @@ QList<QStandardItem*> MakeGameListEntry(const std::string& path, const std::stri ...@@ -97,7 +97,7 @@ QList<QStandardItem*> MakeGameListEntry(const std::string& path, const std::stri
const auto it = FindMatchingCompatibilityEntry(compatibility_list, program_id); const auto it = FindMatchingCompatibilityEntry(compatibility_list, program_id);
// The game list uses this as compatibility number for untested games // The game list uses this as compatibility number for untested games
QString compatibility{"99"}; QString compatibility{QStringLiteral("99")};
if (it != compatibility_list.end()) { if (it != compatibility_list.end()) {
compatibility = it->second.first; compatibility = it->second.first;
} }
......
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