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