From 9fb1e2b17ea294b06297139198cd80c06783a714 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 18 Nov 2010 20:27:15 +0000 Subject: COMMON: Change wrapBufferedWriteStream() to always disposes wrapped stream This is the only we need right now, and it saves a few bytes per instance. The template approach I used before has the drawback that it increases the binary size, which negates the benefit. Thanks to LordHoto for pointing this out. svn-id: r54344 --- backends/platform/ds/arm9/source/gbampsave.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/platform/ds/arm9') diff --git a/backends/platform/ds/arm9/source/gbampsave.cpp b/backends/platform/ds/arm9/source/gbampsave.cpp index ea2e7e01de..ab7f3cff91 100644 --- a/backends/platform/ds/arm9/source/gbampsave.cpp +++ b/backends/platform/ds/arm9/source/gbampsave.cpp @@ -58,7 +58,7 @@ Common::OutSaveFile *GBAMPSaveFileManager::openForSaving(const Common::String &f Common::WriteStream *stream = DS::DSFileStream::makeFromPath(fileSpec, true); // Use a write buffer - stream = Common::wrapBufferedWriteStream(stream, SAVE_BUFFER_SIZE, DisposeAfterUse::YES); + stream = Common::wrapBufferedWriteStream(stream, SAVE_BUFFER_SIZE); return stream; } -- cgit v1.2.3