Possible fix for coverity #29375
[supertux.git] / src / physfs / ofile_stream.cpp
index 432bc94..1e7987f 100644 (file)
 
 #include "physfs/ofile_stream.hpp"
 
-#include "physfs/ofile_streambuf.hpp"
-
-OFileStream::OFileStream(const std::string& filename) :
-  std::ostream(new OFileStreambuf(filename))
+OFileStream::OFileStream(OFileStreambuf* buf) :
+  std::ostream(buf)
 {
 }