X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftask.cpp;h=d969a7afa495f4c7076b5a8583b94679b0f25650;hb=44c71b05ff282b3ce5a2d71c0f14eed97bfefea6;hp=75b725ede8657cc760efaa07d0bb92456b51975e;hpb=24981eb7ef702aa97b2ab90399ccd3fc23ce9ccf;p=builder.git diff --git a/source/task.cpp b/source/task.cpp index 75b725e..d969a7a 100644 --- a/source/task.cpp +++ b/source/task.cpp @@ -22,16 +22,16 @@ void Task::set_unlink(bool u) void Task::prepare() { - for(list::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); }