From 8ba75fc522f16844524dd4d6f88c3851e2402969 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 30 Sep 2009 16:16:53 +0000 Subject: Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things) svn-id: r44495 --- common/EventRecorder.cpp | 6 +++--- common/stream.cpp | 2 +- common/zlib.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'common') diff --git a/common/EventRecorder.cpp b/common/EventRecorder.cpp index 57ab475f4a..64de26a8c7 100644 --- a/common/EventRecorder.cpp +++ b/common/EventRecorder.cpp @@ -39,7 +39,7 @@ void readRecord(Common::InSaveFile *inFile, uint32 &diff, Common::Event &event) event.type = (Common::EventType)inFile->readUint32LE(); - switch(event.type) { + switch (event.type) { case Common::EVENT_KEYDOWN: case Common::EVENT_KEYUP: event.kbd.keycode = (Common::KeyCode)inFile->readSint32LE(); @@ -66,7 +66,7 @@ void writeRecord(Common::OutSaveFile *outFile, uint32 diff, const Common::Event outFile->writeUint32LE((uint32)event.type); - switch(event.type) { + switch (event.type) { case Common::EVENT_KEYDOWN: case Common::EVENT_KEYUP: outFile->writeSint32LE(event.kbd.keycode); @@ -340,7 +340,7 @@ bool EventRecorder::pollEvent(Common::Event &ev) { if (_hasPlaybackEvent) { if (_playbackDiff <= (_eventCount - _lastEventCount)) { - switch(_playbackEvent.type) { + switch (_playbackEvent.type) { case Common::EVENT_MOUSEMOVE: case Common::EVENT_LBUTTONDOWN: case Common::EVENT_LBUTTONUP: diff --git a/common/stream.cpp b/common/stream.cpp index 946b26a393..9329ddea6c 100644 --- a/common/stream.cpp +++ b/common/stream.cpp @@ -202,7 +202,7 @@ bool SeekableSubReadStream::seek(int32 offset, int whence) { assert(_pos >= _begin); assert(_pos <= _end); - switch(whence) { + switch (whence) { case SEEK_END: offset = size() + offset; // fallthrough diff --git a/common/zlib.cpp b/common/zlib.cpp index 519b7c4806..7f04bd5a4f 100644 --- a/common/zlib.cpp +++ b/common/zlib.cpp @@ -154,7 +154,7 @@ public: bool seek(int32 offset, int whence = SEEK_SET) { int32 newPos = 0; assert(whence != SEEK_END); // SEEK_END not supported - switch(whence) { + switch (whence) { case SEEK_SET: newPos = offset; break; -- cgit v1.2.3