From: Mikko Rasa Date: Sat, 16 Aug 2008 10:17:48 +0000 (+0000) Subject: Use IO::BufferedFile where appropriate X-Git-Tag: 1.0~24 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=c6715e02cb52993ee2a07797acc6466ead72f2e6;p=builder.git Use IO::BufferedFile where appropriate --- diff --git a/source/builder.cpp b/source/builder.cpp index bb7b68f..9be7f6c 100644 --- a/source/builder.cpp +++ b/source/builder.cpp @@ -547,8 +547,7 @@ int Builder::load_build_file(const FS::Path &fn) { try { - IO::File inf(fn.str()); - IO::Buffered in(inf); + IO::BufferedFile in(fn.str()); if(verbose>=3) cout<<"Reading "<second.value+".cache"); - IO::File out(fn.str(), IO::M_WRITE); + IO::BufferedFile out(fn.str(), IO::M_WRITE); for(i=options.begin(); i!=options.end(); ++i) IO::print(out, "option \"%s\" \"%s\";\n", i->second.name, i->second.value); @@ -211,8 +211,7 @@ void Config::load() try { - IO::File inf(fn.str()); - IO::Buffered in(inf); + IO::BufferedFile in(fn.str()); mtime=Time::TimeStamp::from_unixtime(FS::stat(fn).st_mtime);