diff options
author | Tarek Soliman | 2012-02-15 09:53:31 -0600 |
---|---|---|
committer | Tarek Soliman | 2012-02-15 10:07:10 -0600 |
commit | a4798602d7a025dc13fd253d584dbf29dbec488d (patch) | |
tree | d6e764535eb4eef6d3c313e00a7eaea8b1724a2d /engines/toon | |
parent | 921f602ab8631a9d10e0a173b6b331dbafda564a (diff) | |
download | scummvm-rg350-a4798602d7a025dc13fd253d584dbf29dbec488d.tar.gz scummvm-rg350-a4798602d7a025dc13fd253d584dbf29dbec488d.tar.bz2 scummvm-rg350-a4798602d7a025dc13fd253d584dbf29dbec488d.zip |
JANITORIAL: Fix missing whitespace in pointer cast
find -name '*.h' -or -name '*.cpp' | xargs sed -r -i 's@\(([A-Za-z0-9]+)\*\)@(\1 *)@g'
This seems to have caught some params as well which is not undesirable IMO.
It also caught some strings containing this which is undesirable so I
excluded them manually. (engines/sci/engine/kernel_tables.h)
Diffstat (limited to 'engines/toon')
-rw-r--r-- | engines/toon/audio.cpp | 2 | ||||
-rw-r--r-- | engines/toon/character.cpp | 2 | ||||
-rw-r--r-- | engines/toon/script_func.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/engines/toon/audio.cpp b/engines/toon/audio.cpp index b9adfa7eeb..77822ab078 100644 --- a/engines/toon/audio.cpp +++ b/engines/toon/audio.cpp @@ -514,7 +514,7 @@ Common::SeekableReadStream *AudioStreamPackage::getStream(int32 id, bool ownMemo int32 size = 0; getInfo(id, &offset, &size); if (ownMemory) { - byte *memory = (byte*)malloc(size); + byte *memory = (byte *)malloc(size); _file->seek(offset); _file->read(memory, size); return new Common::MemoryReadStream(memory, size, DisposeAfterUse::YES); diff --git a/engines/toon/character.cpp b/engines/toon/character.cpp index 715bd33433..0e5189957b 100644 --- a/engines/toon/character.cpp +++ b/engines/toon/character.cpp @@ -997,7 +997,7 @@ bool Character::loadShadowAnimation(const Common::String &animName) { void Character::plotPath(Graphics::Surface& surface) { for (int i = 0; i < _currentPathNodeCount; i++) { - *(byte*)surface.getBasePtr(_currentPathX[i], _currentPathY[i]) = ( i < _currentPathNode); + *(byte *)surface.getBasePtr(_currentPathX[i], _currentPathY[i]) = ( i < _currentPathNode); } } diff --git a/engines/toon/script_func.h b/engines/toon/script_func.h index ef1cb59f47..e22c4b34fa 100644 --- a/engines/toon/script_func.h +++ b/engines/toon/script_func.h @@ -39,7 +39,7 @@ public: Common::Array<const OpcodeV2 *> _opcodes; ToonEngine *_vm; -#define SYSFUNC(x) int32 x(EMCState*) +#define SYSFUNC(x) int32 x(EMCState *) SYSFUNC(sys_Cmd_Dummy); SYSFUNC(sys_Cmd_Change_Actor_X_And_Y); SYSFUNC(sys_Cmd_Init_Talking_Character); |