]> git.cworth.org Git - apitrace/blobdiff - common/trace_file.cpp
Update downloads link.
[apitrace] / common / trace_file.cpp
index 93c1fb22bf13002c15b42cd942451e86664abb3c..3657fd2943088012fa4c69abc790bb753a151f8e 100644 (file)
 #include "trace_file.hpp"
 
 #include <assert.h>
-#include <string.h>
 
-#include <zlib.h>
-#include <gzguts.h>
 
-#include "os.hpp"
-
-#include <iostream>
-
-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);
 }