mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 17:45:38 +00:00
Fixed two MSVC compiler warnings.
This commit is contained in:
parent
fc69a2942f
commit
b361da6e1e
|
@ -122,7 +122,7 @@ GuiGamelistOptions::GuiGamelistOptions(
|
||||||
root = mSystem->getRootFolder();
|
root = mSystem->getRootFolder();
|
||||||
|
|
||||||
std::string sortType = root->getSortTypeString();
|
std::string sortType = root->getSortTypeString();
|
||||||
unsigned int numSortTypes = FileSorts::SortTypes.size();
|
unsigned int numSortTypes = static_cast<unsigned int>(FileSorts::SortTypes.size());
|
||||||
// If it's not a collection, then hide the System sort options.
|
// If it's not a collection, then hide the System sort options.
|
||||||
if (!root->getSystem()->isCollection())
|
if (!root->getSystem()->isCollection())
|
||||||
numSortTypes -= 2;
|
numSortTypes -= 2;
|
||||||
|
|
|
@ -255,7 +255,7 @@ void GuiMenu::openUISettings()
|
||||||
auto default_sort_order = std::make_shared<SortList>
|
auto default_sort_order = std::make_shared<SortList>
|
||||||
(mWindow, getHelpStyle(), "DEFAULT SORT ORDER", false);
|
(mWindow, getHelpStyle(), "DEFAULT SORT ORDER", false);
|
||||||
// Exclude the System sort options.
|
// Exclude the System sort options.
|
||||||
unsigned int numSortTypes = FileSorts::SortTypes.size() - 2;
|
unsigned int numSortTypes = static_cast<unsigned int>(FileSorts::SortTypes.size() - 2);
|
||||||
for (unsigned int i = 0; i < numSortTypes; i++) {
|
for (unsigned int i = 0; i < numSortTypes; i++) {
|
||||||
if (FileSorts::SortTypes[i].description ==
|
if (FileSorts::SortTypes[i].description ==
|
||||||
Settings::getInstance()->getString("DefaultSortOrder")) {
|
Settings::getInstance()->getString("DefaultSortOrder")) {
|
||||||
|
|
Loading…
Reference in a new issue