COMMON: Remove usage of ScopedPtr in OutSaveFile
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.
This commit is contained in:
parent
ece101ee4a
commit
26d0935b9f
2 changed files with 4 additions and 3 deletions
|
@ -31,7 +31,9 @@ namespace Common {
|
||||||
|
|
||||||
OutSaveFile::OutSaveFile(WriteStream *w): _wrapped(w) {}
|
OutSaveFile::OutSaveFile(WriteStream *w): _wrapped(w) {}
|
||||||
|
|
||||||
OutSaveFile::~OutSaveFile() {}
|
OutSaveFile::~OutSaveFile() {
|
||||||
|
delete _wrapped;
|
||||||
|
}
|
||||||
|
|
||||||
bool OutSaveFile::err() const { return _wrapped->err(); }
|
bool OutSaveFile::err() const { return _wrapped->err(); }
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
#include "common/stream.h"
|
#include "common/stream.h"
|
||||||
#include "common/str-array.h"
|
#include "common/str-array.h"
|
||||||
#include "common/error.h"
|
#include "common/error.h"
|
||||||
#include "common/ptr.h"
|
|
||||||
|
|
||||||
namespace Common {
|
namespace Common {
|
||||||
|
|
||||||
|
@ -47,7 +46,7 @@ typedef SeekableReadStream InSaveFile;
|
||||||
*/
|
*/
|
||||||
class OutSaveFile: public WriteStream {
|
class OutSaveFile: public WriteStream {
|
||||||
protected:
|
protected:
|
||||||
ScopedPtr<WriteStream> _wrapped;
|
WriteStream *_wrapped;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
OutSaveFile(WriteStream *w);
|
OutSaveFile(WriteStream *w);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue