mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Assorted warning fixes and cleanups
This commit is contained in:
1 parent
7960bd0767
commit
a599bf7500
9 files changed
+67
-70
No files matched your search
+3
-3
@@ -75,7 +75,7 @@ void Config::Load(const char *iniFileName)
|
||||
general->Get("TopMost", &bTopMost);
|
||||
#endif
|
||||
|
||||
if (recentIsos.size() > iMaxRecent)
|
||||
if ((int)recentIsos.size() > iMaxRecent)
|
||||
recentIsos.resize(iMaxRecent);
|
||||
|
||||
IniFile::Section *cpu = iniFile.GetOrCreateSection("CPU");
|
||||
@@ -290,13 +290,13 @@ void Config::AddRecent(const std::string &file) {
|
||||
if (*str == file) {
|
||||
recentIsos.erase(str);
|
||||
recentIsos.insert(recentIsos.begin(), file);
|
||||
if (recentIsos.size() > iMaxRecent)
|
||||
if ((int)recentIsos.size() > iMaxRecent)
|
||||
recentIsos.resize(iMaxRecent);
|
||||
return;
|
||||
}
|
||||
}
|
||||
recentIsos.insert(recentIsos.begin(), file);
|
||||
if (recentIsos.size() > iMaxRecent)
|
||||
if ((int)recentIsos.size() > iMaxRecent)
|
||||
recentIsos.resize(iMaxRecent);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user