(Windows) Fixed an MSVC compiler warning.

This commit is contained in:
Leon Styhre 2023-01-22 12:04:34 +01:00
parent 6035884020
commit dd89d241f5

View file

@ -786,7 +786,7 @@ void ThemeData::populateThemeSets()
if (!capabilities.legacyTheme) { if (!capabilities.legacyTheme) {
int aspectRatios {0}; int aspectRatios {0};
if (capabilities.aspectRatios.size() > 0) if (capabilities.aspectRatios.size() > 0)
aspectRatios = capabilities.aspectRatios.size() - 1; aspectRatios = static_cast<int>(capabilities.aspectRatios.size()) - 1;
LOG(LogDebug) << "Theme set includes support for " LOG(LogDebug) << "Theme set includes support for "
<< capabilities.variants.size() << " variant" << capabilities.variants.size() << " variant"
<< (capabilities.variants.size() != 1 ? "s" : "") << ", " << (capabilities.variants.size() != 1 ? "s" : "") << ", "