void Task::prepare()
{
- for(list<FS::Path>::const_iterator i=files.begin(); i!=files.end(); ++i)
+ for(const FS::Path &f: files)
{
- if(FS::exists(*i))
+ if(FS::exists(f))
{
// If the file exists, the directory it's in must exist too
- FS::unlink(*i);
+ FS::unlink(f);
}
else
{
- FS::Path dir = FS::dirname(*i);
+ FS::Path dir = FS::dirname(f);
if(!FS::exists(dir))
FS::mkpath(dir, 0755);
}