diff options
author | Johannes Schickel | 2012-01-29 16:31:52 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-01-29 16:31:52 +0100 |
commit | db98fdab2b73547bba4c4346393b3eaa204db9a5 (patch) | |
tree | ad3239dcec20d7371cfbd15635f82f3a80d85124 /common | |
parent | f11b52a097912cfc24728259150c00227167df38 (diff) | |
download | scummvm-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.cpp | 4 |
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(); |