Make compile against qt6

This commit is contained in:
Laurent Montel 2022-10-04 08:31:33 +02:00
parent cbcfa9fd7f
commit afe595e08f

View file

@ -59,7 +59,7 @@ QList<Application *> ApplicationFolder::appPreviews()
{
QList<Application *> previews;
// we give a maximum of 4 icons
for (int i = 0; i < std::min(m_applications.length(), 4); ++i) {
for (int i = 0; i < std::min<int>(m_applications.length(), 4); ++i) {
previews.push_back(m_applications[i]);
}
return previews;