aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2009-09-30 16:16:53 +0000
committerMax Horn2009-09-30 16:16:53 +0000
commit8ba75fc522f16844524dd4d6f88c3851e2402969 (patch)
treedf25c20389e3e706d508f37914dedc73c6479f00 /common
parent25dde91c7c6c7da52636e3daa34bd9eee5d9dcb9 (diff)
downloadscummvm-rg350-8ba75fc522f16844524dd4d6f88c3851e2402969.tar.gz
scummvm-rg350-8ba75fc522f16844524dd4d6f88c3851e2402969.tar.bz2
scummvm-rg350-8ba75fc522f16844524dd4d6f88c3851e2402969.zip
Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
svn-id: r44495
Diffstat (limited to 'common')
-rw-r--r--common/EventRecorder.cpp6
-rw-r--r--common/stream.cpp2
-rw-r--r--common/zlib.cpp2
3 files changed, 5 insertions, 5 deletions
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;