[Scummvm-cvs-logs] SF.net SVN: scummvm: [28947] scummvm/trunk/common/file.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Tue Sep 18 22:46:22 CEST 2007
Revision: 28947
http://scummvm.svn.sourceforge.net/scummvm/?rev=28947&view=rev
Author: fingolfin
Date: 2007-09-18 13:46:22 -0700 (Tue, 18 Sep 2007)
Log Message:
-----------
Fix some warnings
Modified Paths:
--------------
scummvm/trunk/common/file.cpp
Modified: scummvm/trunk/common/file.cpp
===================================================================
--- scummvm/trunk/common/file.cpp 2007-09-18 20:23:06 UTC (rev 28946)
+++ scummvm/trunk/common/file.cpp 2007-09-18 20:46:22 UTC (rev 28947)
@@ -411,10 +411,12 @@
bool File::remove(const String &filename){
if (remove(filename.c_str()) != 0) {
- if (errno == EACCES)
- ;//TODO: read-only file
- if (errno == ENOENT)
- ;//TODO: non-existent file
+ if (errno == EACCES) {
+ //TODO: read-only file
+ }
+ if (errno == ENOENT) {
+ //TODO: non-existent file
+ }
return false;
} else {
@@ -424,10 +426,12 @@
bool File::remove(const FilesystemNode &node){
if (remove(node.getPath()) != 0) {
- if (errno == EACCES)
- ;//TODO: read-only file
- if (errno == ENOENT)
- ;//TODO: non-existent file
+ if (errno == EACCES) {
+ //TODO: read-only file
+ }
+ if (errno == ENOENT) {
+ //TODO: non-existent file
+ }
return false;
} else {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list