Skip to content

Commit f0370a1

Browse files
authored
ui/qt6: replace deprecated count() with size() (libretro#18169)
* Bump required wayland-protocols * ui/qt: replace deprecated count with size
1 parent e31f9c2 commit f0370a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/drivers/ui_qt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3563,7 +3563,7 @@ void MainWindow::renamePlaylistItem(QListWidgetItem *item, QString newName)
35633563
newPath = info.absolutePath();
35643564

35653565
/* absolutePath() will always use / even on Windows */
3566-
if (newPath.at(newPath.count() - 1) != '/')
3566+
if (newPath.at(newPath.size() - 1) != '/')
35673567
/* add trailing slash if the path doesn't have one */
35683568
newPath += '/';
35693569

@@ -4246,7 +4246,7 @@ QString MainWindow::getScrubbedString(QString str)
42464246
const QString chars("&*/:`\"<>?\\|");
42474247
int i;
42484248

4249-
for (i = 0; i < chars.count(); i++)
4249+
for (i = 0; i < chars.size(); i++)
42504250
str.replace(chars.at(i), '_');
42514251

42524252
return str;

0 commit comments

Comments
 (0)