diff options
author | Max Horn | 2007-09-18 20:16:33 +0000 |
---|---|---|
committer | Max Horn | 2007-09-18 20:16:33 +0000 |
commit | 3abc11611e1d1d93f1cf794df28879de3571bd01 (patch) | |
tree | e1ac8a925d1388f8df010a114d7bed471fc9fe3b /common | |
parent | c3d3aebe87d16d4fc3b7ac8581b99fb97241c9ac (diff) | |
download | scummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.tar.gz scummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.tar.bz2 scummvm-rg350-3abc11611e1d1d93f1cf794df28879de3571bd01.zip |
Code formatting fixes
svn-id: r28945
Diffstat (limited to 'common')
-rw-r--r-- | common/file.cpp | 8 | ||||
-rw-r--r-- | common/fs.cpp | 4 | ||||
-rw-r--r-- | common/md5.cpp | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/common/file.cpp b/common/file.cpp index 880383d220..214c980d5a 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -411,9 +411,9 @@ bool File::open(const FilesystemNode &node, AccessMode mode) { bool File::remove(const String &filename){ if (remove(filename.c_str()) != 0) { - if(errno == EACCES) + if (errno == EACCES) ;//TODO: read-only file - if(errno == ENOENT) + if (errno == ENOENT) ;//TODO: non-existent file return false; @@ -424,9 +424,9 @@ bool File::remove(const String &filename){ bool File::remove(const FilesystemNode &node){ if (remove(node.getPath()) != 0) { - if(errno == EACCES) + if (errno == EACCES) ;//TODO: read-only file - if(errno == ENOENT) + if (errno == ENOENT) ;//TODO: non-existent file return false; diff --git a/common/fs.cpp b/common/fs.cpp index 3e0959b232..86cdfe41d6 100644 --- a/common/fs.cpp +++ b/common/fs.cpp @@ -47,7 +47,7 @@ static bool matchString(const char *str, const char *pat) { if (p) { pat = p; str = ++q; - if(!*str) + if (!*str) return !*pat; break; } @@ -56,7 +56,7 @@ static bool matchString(const char *str, const char *pat) { } // fallthrough case '?': - if(!*str) + if (!*str) return !*pat; pat++; str++; diff --git a/common/md5.cpp b/common/md5.cpp index 32acdc5b8c..fee18f25d0 100644 --- a/common/md5.cpp +++ b/common/md5.cpp @@ -246,7 +246,7 @@ void md5_finish(md5_context *ctx, uint8 digest[16]) { } bool md5_file(const FilesystemNode &file, uint8 digest[16], uint32 length) { - if(!file.exists()) { + if (!file.exists()) { warning("md5_file: using an inexistent FilesystemNode"); return false; } else if (!file.isReadable()) { |