X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Ftrace_file.cpp;h=3657fd2943088012fa4c69abc790bb753a151f8e;hb=b35ae0df401ff22e3b2dc9b6bfacf1e23baebde0;hp=93c1fb22bf13002c15b42cd942451e86664abb3c;hpb=4159a6196b23dae0be22dde17a85783fe4036517;p=apitrace diff --git a/common/trace_file.cpp b/common/trace_file.cpp index 93c1fb2..3657fd2 100644 --- a/common/trace_file.cpp +++ b/common/trace_file.cpp @@ -27,16 +27,9 @@ #include "trace_file.hpp" #include -#include -#include -#include -#include "os.hpp" - -#include - -using namespace Trace; +using namespace trace; File::File(const std::string &filename, @@ -51,7 +44,8 @@ File::File(const std::string &filename, File::~File() { - close(); + // We can't invoke any overriden virtual method here anymore + assert(!m_isOpened); }