aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJohannes Schickel2012-01-29 16:31:52 +0100
committerJohannes Schickel2012-01-29 16:31:52 +0100
commitdb98fdab2b73547bba4c4346393b3eaa204db9a5 (patch)
treead3239dcec20d7371cfbd15635f82f3a80d85124 /common
parentf11b52a097912cfc24728259150c00227167df38 (diff)
downloadscummvm-rg350-db98fdab2b73547bba4c4346393b3eaa204db9a5.tar.gz
scummvm-rg350-db98fdab2b73547bba4c4346393b3eaa204db9a5.tar.bz2
scummvm-rg350-db98fdab2b73547bba4c4346393b3eaa204db9a5.zip
COMMON: Return 0 instead of false in FSNode::createReadStream.
This should "fix" some g++ warnings.
Diffstat (limited to 'common')
-rw-r--r--common/fs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/fs.cpp b/common/fs.cpp
index 8ea96e458a..0143c936d4 100644
--- a/common/fs.cpp
+++ b/common/fs.cpp
@@ -130,10 +130,10 @@ SeekableReadStream *FSNode::createReadStream() const {
if (!_realNode->exists()) {
warning("FSNode::createReadStream: '%s' does not exist", getName().c_str());
- return false;
+ return 0;
} else if (_realNode->isDirectory()) {
warning("FSNode::createReadStream: '%s' is a directory", getName().c_str());
- return false;
+ return 0;
}
return _realNode->createReadStream();