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 /audio | |
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 'audio')
-rw-r--r-- | audio/decoders/flac.cpp | 4 | ||||
-rw-r--r-- | audio/decoders/iff_sound.cpp | 2 | ||||
-rw-r--r-- | audio/decoders/qdm2.cpp | 6 | ||||
-rw-r--r-- | audio/softsynth/opl/dbopl.cpp | 4 | ||||
-rw-r--r-- | audio/softsynth/sid.h | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/audio/decoders/flac.cpp b/audio/decoders/flac.cpp index d06a7b9c0e..bbaf5fd5ae 100644 --- a/audio/decoders/flac.cpp +++ b/audio/decoders/flac.cpp @@ -209,7 +209,7 @@ FLACStream::FLACStream(Common::SeekableReadStream *inStream, bool dispose) ::FLAC__seekable_stream_decoder_set_write_callback(_decoder, &FLACStream::callWrapWrite); ::FLAC__seekable_stream_decoder_set_metadata_callback(_decoder, &FLACStream::callWrapMetadata); ::FLAC__seekable_stream_decoder_set_error_callback(_decoder, &FLACStream::callWrapError); - ::FLAC__seekable_stream_decoder_set_client_data(_decoder, (void*)this); + ::FLAC__seekable_stream_decoder_set_client_data(_decoder, (void *)this); success = (::FLAC__seekable_stream_decoder_init(_decoder) == FLAC__SEEKABLE_STREAM_DECODER_OK); #else @@ -223,7 +223,7 @@ FLACStream::FLACStream(Common::SeekableReadStream *inStream, bool dispose) &FLACStream::callWrapWrite, &FLACStream::callWrapMetadata, &FLACStream::callWrapError, - (void*)this + (void *)this ) == FLAC__STREAM_DECODER_INIT_STATUS_OK); #endif if (success) { diff --git a/audio/decoders/iff_sound.cpp b/audio/decoders/iff_sound.cpp index 4efdce0338..b0c41f0180 100644 --- a/audio/decoders/iff_sound.cpp +++ b/audio/decoders/iff_sound.cpp @@ -75,7 +75,7 @@ struct A8SVXLoader { case ID_BODY: _dataSize = chunk._size; - _data = (int8*)malloc(_dataSize); + _data = (int8 *)malloc(_dataSize); assert(_data); loadData(chunk._stream); return true; diff --git a/audio/decoders/qdm2.cpp b/audio/decoders/qdm2.cpp index 113b88fbf6..735fb2b6a0 100644 --- a/audio/decoders/qdm2.cpp +++ b/audio/decoders/qdm2.cpp @@ -589,7 +589,7 @@ DECL_FFT(32768,16384,8192) DECL_FFT(65536,32768,16384) void fftCalc(FFTContext *s, FFTComplex *z) { - static void (* const fftDispatch[])(FFTComplex*) = { + static void (* const fftDispatch[])(FFTComplex *) = { fft4, fft8, fft16, fft32, fft64, fft128, fft256, fft512, fft1024, fft2048, fft4096, fft8192, fft16384, fft32768, fft65536, }; @@ -857,8 +857,8 @@ void rdftCalc(RDFTContext *s, float *data) { if (s->inverse) { data[0] *= k1; data[1] *= k1; - fftPermute(&s->fft, (FFTComplex*)data); - fftCalc(&s->fft, (FFTComplex*)data); + fftPermute(&s->fft, (FFTComplex *)data); + fftCalc(&s->fft, (FFTComplex *)data); } } diff --git a/audio/softsynth/opl/dbopl.cpp b/audio/softsynth/opl/dbopl.cpp index 02c2317b25..43eb40e7ba 100644 --- a/audio/softsynth/opl/dbopl.cpp +++ b/audio/softsynth/opl/dbopl.cpp @@ -1131,14 +1131,14 @@ void Chip::WriteBD( Bit8u val ) { #define REGOP( _FUNC_ ) \ index = ( ( reg >> 3) & 0x20 ) | ( reg & 0x1f ); \ if ( OpOffsetTable[ index ] ) { \ - Operator* regOp = (Operator*)( ((char *)this ) + OpOffsetTable[ index ] ); \ + Operator* regOp = (Operator *)( ((char *)this ) + OpOffsetTable[ index ] ); \ regOp->_FUNC_( this, val ); \ } #define REGCHAN( _FUNC_ ) \ index = ( ( reg >> 4) & 0x10 ) | ( reg & 0xf ); \ if ( ChanOffsetTable[ index ] ) { \ - Channel* regChan = (Channel*)( ((char *)this ) + ChanOffsetTable[ index ] ); \ + Channel* regChan = (Channel *)( ((char *)this ) + ChanOffsetTable[ index ] ); \ regChan->_FUNC_( this, val ); \ } diff --git a/audio/softsynth/sid.h b/audio/softsynth/sid.h index 19577e94d1..88da0eb326 100644 --- a/audio/softsynth/sid.h +++ b/audio/softsynth/sid.h @@ -55,7 +55,7 @@ class WaveformGenerator { public: WaveformGenerator(); - void set_sync_source(WaveformGenerator*); + void set_sync_source(WaveformGenerator *); void updateClock(cycle_count delta_t); void synchronize(); @@ -272,7 +272,7 @@ class Voice { public: Voice(); - void set_sync_source(Voice*); + void set_sync_source(Voice *); void reset(); void writeCONTROL_REG(reg8); |