| Index: src/ostreams.h
|
| diff --git a/src/ostreams.h b/src/ostreams.h
|
| index 56787f7c126a2d1ff0be295652b247354816170c..840f341551632a4d21e5e747be1a524f0f1cc752 100644
|
| --- a/src/ostreams.h
|
| +++ b/src/ostreams.h
|
| @@ -17,29 +17,29 @@
|
| namespace v8 {
|
| namespace internal {
|
|
|
| +
|
| class OFStreamBase : public std::streambuf {
|
| - protected:
|
| + public:
|
| explicit OFStreamBase(FILE* f);
|
| virtual ~OFStreamBase();
|
|
|
| - int_type sync() FINAL;
|
| - int_type overflow(int_type c) FINAL;
|
| -
|
| - private:
|
| + protected:
|
| FILE* const f_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(OFStreamBase);
|
| + virtual int sync();
|
| + virtual int_type overflow(int_type c);
|
| + virtual std::streamsize xsputn(const char* s, std::streamsize n);
|
| };
|
|
|
|
|
| // An output stream writing to a file.
|
| -class OFStream FINAL : private virtual OFStreamBase, public std::ostream {
|
| +class OFStream : public std::ostream {
|
| public:
|
| explicit OFStream(FILE* f);
|
| ~OFStream();
|
|
|
| private:
|
| - DISALLOW_COPY_AND_ASSIGN(OFStream);
|
| + OFStreamBase buf_;
|
| };
|
|
|
|
|
|
|