Skip to content

Commit

Permalink
COMMON: Remove usage of ScopedPtr in OutSaveFile
Browse files Browse the repository at this point in the history
It's not very useful. However this is mostly to test the theory that the
build failure we've been experiencing in
engines/scumm/he/logic/football.cpp with the osx builder on buildbot is
related to the size of the intermediary assembly source file.
  • Loading branch information
bgK committed Jan 5, 2019
1 parent ece101e commit 26d0935
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion backends/saves/savefile.cpp
Expand Up @@ -31,7 +31,9 @@ namespace Common {

OutSaveFile::OutSaveFile(WriteStream *w): _wrapped(w) {}

OutSaveFile::~OutSaveFile() {}
OutSaveFile::~OutSaveFile() {
delete _wrapped;
}

bool OutSaveFile::err() const { return _wrapped->err(); }

Expand Down
3 changes: 1 addition & 2 deletions common/savefile.h
Expand Up @@ -28,7 +28,6 @@
#include "common/stream.h"
#include "common/str-array.h"
#include "common/error.h"
#include "common/ptr.h"

namespace Common {

Expand All @@ -47,7 +46,7 @@ typedef SeekableReadStream InSaveFile;
*/
class OutSaveFile: public WriteStream {
protected:
ScopedPtr<WriteStream> _wrapped;
WriteStream *_wrapped;

public:
OutSaveFile(WriteStream *w);
Expand Down

0 comments on commit 26d0935

Please sign in to comment.