summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-05-20 15:07:56 -0400
committerGravatar Lioncash2019-05-20 15:07:59 -0400
commited2fedac138d47e50850c563058fbcc46eb51b0a (patch)
tree36b7b991a121852ee6e56bad8a6d929c29a05d8f /src
parentyuzu/game_list_p: Amend mentions of SMDH in comments (diff)
downloadyuzu-ed2fedac138d47e50850c563058fbcc46eb51b0a.tar.gz
yuzu-ed2fedac138d47e50850c563058fbcc46eb51b0a.tar.xz
yuzu-ed2fedac138d47e50850c563058fbcc46eb51b0a.zip
yuzu/game_list_worker: Specify string conversions explicitly
Allows the game list worker code to compile successfully with implicit string conversions disabled.
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/game_list_worker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/game_list_worker.cpp b/src/yuzu/game_list_worker.cpp
index 8687e7c5a..82d2826ba 100644
--- a/src/yuzu/game_list_worker.cpp
+++ b/src/yuzu/game_list_worker.cpp
@@ -45,7 +45,7 @@ bool HasSupportedFileExtension(const std::string& file_name) {
45} 45}
46 46
47bool IsExtractedNCAMain(const std::string& file_name) { 47bool IsExtractedNCAMain(const std::string& file_name) {
48 return QFileInfo(QString::fromStdString(file_name)).fileName() == "main"; 48 return QFileInfo(QString::fromStdString(file_name)).fileName() == QStringLiteral("main");
49} 49}
50 50
51QString FormatGameName(const std::string& physical_name) { 51QString FormatGameName(const std::string& physical_name) {
@@ -97,7 +97,7 @@ QList<QStandardItem*> MakeGameListEntry(const std::string& path, const std::stri
97 const auto it = FindMatchingCompatibilityEntry(compatibility_list, program_id); 97 const auto it = FindMatchingCompatibilityEntry(compatibility_list, program_id);
98 98
99 // The game list uses this as compatibility number for untested games 99 // The game list uses this as compatibility number for untested games
100 QString compatibility{"99"}; 100 QString compatibility{QStringLiteral("99")};
101 if (it != compatibility_list.end()) { 101 if (it != compatibility_list.end()) {
102 compatibility = it->second.first; 102 compatibility = it->second.first;
103 } 103 }