aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/BDynBuffer.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-05-11 16:03:59 +0200
committerEinar Johan Trøan Sømåen2012-06-02 13:01:15 +0200
commitba6a2ac66ea3e679246a28e81013f7c4794ed564 (patch)
tree9e187c8259f0ad8f38b29c4d66abef675a9e7ff3 /engines/wintermute/BDynBuffer.cpp
parent2ee58d2dc3f78e03f25edf7103403ee06ba9ab7a (diff)
downloadscummvm-rg350-ba6a2ac66ea3e679246a28e81013f7c4794ed564.tar.gz
scummvm-rg350-ba6a2ac66ea3e679246a28e81013f7c4794ed564.tar.bz2
scummvm-rg350-ba6a2ac66ea3e679246a28e81013f7c4794ed564.zip
WINTERMUTE: Run Astyle on code-files to reformat.
Diffstat (limited to 'engines/wintermute/BDynBuffer.cpp')
-rw-r--r--engines/wintermute/BDynBuffer.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/wintermute/BDynBuffer.cpp b/engines/wintermute/BDynBuffer.cpp
index 68012f29f8..23cd1d2584 100644
--- a/engines/wintermute/BDynBuffer.cpp
+++ b/engines/wintermute/BDynBuffer.cpp
@@ -8,12 +8,12 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
-
+
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
-
+
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -74,7 +74,7 @@ HRESULT CBDynBuffer::Init(uint32 InitSize) {
if (InitSize == 0) InitSize = _initSize;
- _buffer = (byte *)malloc(InitSize);
+ _buffer = (byte *)malloc(InitSize);
if (!_buffer) {
Game->LOG(0, "CBDynBuffer::Init - Error allocating %d bytes", InitSize);
return E_FAIL;
@@ -93,7 +93,7 @@ HRESULT CBDynBuffer::PutBytes(byte *Buffer, uint32 Size) {
while (_offset + Size > _realSize) {
_realSize += _growBy;
- _buffer = (byte *)realloc(_buffer, _realSize);
+ _buffer = (byte *)realloc(_buffer, _realSize);
if (!_buffer) {
Game->LOG(0, "CBDynBuffer::PutBytes - Error reallocating buffer to %d bytes", _realSize);
return E_FAIL;
@@ -126,14 +126,14 @@ HRESULT CBDynBuffer::GetBytes(byte *Buffer, uint32 Size) {
//////////////////////////////////////////////////////////////////////////
void CBDynBuffer::PutDWORD(uint32 Val) {
- PutBytes((byte *)&Val, sizeof(uint32));
+ PutBytes((byte *)&Val, sizeof(uint32));
}
//////////////////////////////////////////////////////////////////////////
uint32 CBDynBuffer::GetDWORD() {
uint32 ret;
- GetBytes((byte *)&ret, sizeof(uint32));
+ GetBytes((byte *)&ret, sizeof(uint32));
return ret;
}
@@ -143,7 +143,7 @@ void CBDynBuffer::PutString(const char *Val) {
if (!Val) PutString("(null)");
else {
PutDWORD(strlen(Val) + 1);
- PutBytes((byte *)Val, strlen(Val) + 1);
+ PutBytes((byte *)Val, strlen(Val) + 1);
}
}
@@ -186,7 +186,7 @@ void CBDynBuffer::PutTextIndent(int Indent, LPCSTR fmt, ...) {
void CBDynBuffer::PutTextForm(const char *format, va_list argptr) {
char buff[32768];
vsprintf(buff, format, argptr);
- PutBytes((byte *)buff, strlen(buff));
+ PutBytes((byte *)buff, strlen(buff));
}
} // end of namespace WinterMute