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/main.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/main.cpp')
-rw-r--r-- | src/yuzu/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 80e6d23a5..379c925e5 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -1612,7 +1612,7 @@ void GMainWindow::StoreRecentFile(const QString& filename) { void GMainWindow::UpdateRecentFiles() { const int num_recent_files = - std::min(UISettings::values.recent_files.size(), max_recent_files_item); + std::min(static_cast<int>(UISettings::values.recent_files.size()), max_recent_files_item); for (int i = 0; i < num_recent_files; i++) { const QString text = QStringLiteral("&%1. %2").arg(i + 1).arg( @@ -3350,7 +3350,7 @@ void GMainWindow::CenterMouseCursor() { const int center_x = render_window->width() / 2; const int center_y = render_window->height() / 2; - QCursor::setPos(mapToGlobal({center_x, center_y})); + QCursor::setPos(mapToGlobal(QPoint{center_x, center_y})); } void GMainWindow::OnMouseActivity() { |