diff options
author | Mai M <mathew1800@gmail.com> | 2022-06-10 23:09:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-10 23:09:49 -0400 |
commit | 266e086706d4cdb4fe1c6b3979f4f8a7e7b24f44 (patch) | |
tree | f4a72e049c4b692d067053cdf96b355e7d0ed794 /src/yuzu/game_list.cpp | |
parent | 9561a2f5b1bc0a09c37909b07a85e27ee2f60be4 (diff) | |
parent | 499c89790b0e07dbb014b8b7415bf0e28cecfaaf (diff) |
Merge pull request #8318 from Docteh/cmake-qt56-entry
Update some files with Qt 5.15.2 best practices in mind
Diffstat (limited to 'src/yuzu/game_list.cpp')
-rw-r--r-- | src/yuzu/game_list.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp index 4a6d74a7e..d13530a5b 100644 --- a/src/yuzu/game_list.cpp +++ b/src/yuzu/game_list.cpp @@ -483,7 +483,7 @@ void GameList::DonePopulating(const QStringList& watch_list) { // Also artificially caps the watcher to a certain number of directories constexpr int LIMIT_WATCH_DIRECTORIES = 5000; constexpr int SLICE_SIZE = 25; - int len = std::min(watch_list.length(), LIMIT_WATCH_DIRECTORIES); + int len = std::min(static_cast<int>(watch_list.size()), LIMIT_WATCH_DIRECTORIES); for (int i = 0; i < len; i += SLICE_SIZE) { watcher->addPaths(watch_list.mid(i, i + SLICE_SIZE)); QCoreApplication::processEvents(); |