From b751087859aa96ff710ba75a00e5b862c04e00ac Mon Sep 17 00:00:00 2001 From: Trevor Hickey Date: Sun, 18 Oct 2015 20:13:35 -0400 Subject: [PATCH] Removes uneeded .close() calls These calls are not needed. ofstream's destructor will close the file. Resolves #298. --- src/base/plots.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/base/plots.cpp b/src/base/plots.cpp index eb6162039..9cce0703b 100644 --- a/src/base/plots.cpp +++ b/src/base/plots.cpp @@ -22,10 +22,8 @@ void writePlotFile(const std::string& fname, const std::string& fmt, } if (fmt == "TEC") { outputTEC(f, plotTitle, names, data); - f.close(); } else if (fmt == "XL" || fmt == "CSV") { outputExcel(f, plotTitle, names, data); - f.close(); } else { throw CanteraError("writePlotFile", "unsupported plot type:" + fmt);