From a4798602d7a025dc13fd253d584dbf29dbec488d Mon Sep 17 00:00:00 2001 From: Tarek Soliman Date: Wed, 15 Feb 2012 09:53:31 -0600 Subject: 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) --- engines/sword2/music.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sword2') diff --git a/engines/sword2/music.cpp b/engines/sword2/music.cpp index 1bb08fd36f..40a4021a5c 100644 --- a/engines/sword2/music.cpp +++ b/engines/sword2/music.cpp @@ -115,7 +115,7 @@ static Audio::AudioStream *getAudioStream(SoundFileHandle *fh, const char *base, fh->idxLen = fh->file.readUint32LE(); fh->file.seek(entrySize * 4); - fh->idxTab = (uint32*)malloc(fh->idxLen * 3 * sizeof(uint32)); + fh->idxTab = (uint32 *)malloc(fh->idxLen * 3 * sizeof(uint32)); for (uint32 cnt = 0; cnt < fh->idxLen; cnt++) { fh->idxTab[cnt * 3 + 0] = fh->file.readUint32LE(); fh->idxTab[cnt * 3 + 1] = fh->file.readUint32LE(); -- cgit v1.2.3