From c6715e02cb52993ee2a07797acc6466ead72f2e6 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 16 Aug 2008 10:17:48 +0000 Subject: [PATCH] Use IO::BufferedFile where appropriate --- source/builder.cpp | 3 +-- source/config.cpp | 9 ++++----- 2 files changed, 5 insertions(+), 7 deletions(-) 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); -- 2.43.0