workspace: silence signed unsigned comparison warning

This commit is contained in:
Xaver Hugl 2022-11-12 15:35:48 +01:00
parent 704d1d639a
commit 5fd9871fa7

View file

@ -601,7 +601,7 @@ std::shared_ptr<OutputMode> parseMode(Output *output, const QJsonObject &modeInf
{ {
const QJsonObject size = modeInfo["size"].toObject(); const QJsonObject size = modeInfo["size"].toObject();
const QSize modeSize = QSize(size["width"].toInt(), size["height"].toInt()); const QSize modeSize = QSize(size["width"].toInt(), size["height"].toInt());
const int refreshRate = std::round(modeInfo["refresh"].toDouble() * 1000); const uint32_t refreshRate = std::round(modeInfo["refresh"].toDouble() * 1000);
const auto modes = output->modes(); const auto modes = output->modes();
auto it = std::find_if(modes.begin(), modes.end(), [&modeSize, &refreshRate](const auto &mode) { auto it = std::find_if(modes.begin(), modes.end(), [&modeSize, &refreshRate](const auto &mode) {