(Windows) Fixed some MSVC compiler warnings

This commit is contained in:
Leon Styhre 2024-07-16 16:58:55 +02:00
parent 8a56304eba
commit f7be57336b
2 changed files with 5 additions and 3 deletions

View file

@ -355,7 +355,7 @@ void ViewController::noGamesDialog()
_("CANCEL"), nullptr, "", nullptr, nullptr, false, true, _("CANCEL"), nullptr, "", nullptr, nullptr, false, true,
(mRenderer->getIsVerticalOrientation() ? (mRenderer->getIsVerticalOrientation() ?
0.78f : 0.78f :
0.50 * (1.778f / mRenderer->getScreenAspectRatio())))); 0.50f * (1.778f / mRenderer->getScreenAspectRatio()))));
}, },
_("QUIT"), _("QUIT"),
[] { [] {

View file

@ -329,12 +329,14 @@ private:
const std::string numString {Utils::String::format( const std::string numString {Utils::String::format(
_("%i (OF %i)"), getSelectedObjects().size(), mEntries.size())}; _("%i (OF %i)"), getSelectedObjects().size(), mEntries.size())};
ss << Utils::String::format( ss << Utils::String::format(
_n("%s SELECTED", "%s SELECTED", getSelectedObjects().size()), _n("%s SELECTED", "%s SELECTED",
static_cast<unsigned long>(getSelectedObjects().size())),
numString.c_str()); numString.c_str());
} }
else { else {
ss << Utils::String::format( ss << Utils::String::format(
_n("%i SELECTED", "%i SELECTED", getSelectedObjects().size()), _n("%i SELECTED", "%i SELECTED",
static_cast<unsigned long>(getSelectedObjects().size())),
getSelectedObjects().size()); getSelectedObjects().size());
} }