last code patch from gta5sync

This commit is contained in:
Syping 2017-10-21 05:59:10 +02:00
parent 15255874ff
commit f62b1b08c0
22 changed files with 208 additions and 201 deletions

View file

@ -50,7 +50,7 @@ void ProfileLoader::run()
SavegameFiles.removeDuplicates();
SnapmaticPics.removeDuplicates();
foreach(const QString &BackupFile, BackupFiles)
for (QString BackupFile : BackupFiles)
{
SavegameFiles.removeAll(BackupFile);
SnapmaticPics.removeAll(BackupFile);
@ -60,7 +60,7 @@ void ProfileLoader::run()
// Loading pictures and savegames
emit loadingProgress(curFile, maximumV);
foreach(const QString &SavegameFile, SavegameFiles)
for (QString SavegameFile : SavegameFiles)
{
emit loadingProgress(curFile, maximumV);
QString sgdPath = profileFolder % "/" % SavegameFile;
@ -71,7 +71,7 @@ void ProfileLoader::run()
}
curFile++;
}
foreach(const QString &SnapmaticPic, SnapmaticPics)
for (QString SnapmaticPic : SnapmaticPics)
{
emit loadingProgress(curFile, maximumV);
QString picturePath = profileFolder % "/" % SnapmaticPic;
@ -90,7 +90,7 @@ void ProfileLoader::run()
// adding found crews
crewDB->setAddingCrews(true);
foreach(int crewID, crewList)
for (int crewID : crewList)
{
crewDB->addCrew(crewID);
}