summaryrefslogtreecommitdiff
path: root/xml2cmp
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2013-02-15 11:26:52 +0000
committerHerbert Dürr <hdu@apache.org>2013-02-15 11:26:52 +0000
commitb3c966abd64fc70129b9ae254603e5626e024819 (patch)
tree8162ff2a1d21d845980058b749a15e8b75cbd7dd /xml2cmp
parent4e8014c6b7536a90fecf868efabf2762c6c94bf3 (diff)
fix xml2cmp when using a generic STL
std::ifstream's EOF bit is not something to be worry about when the preceding operation was reading to the EOF
Notes
Notes: ignore: obsolete - no xml2cmp
Diffstat (limited to 'xml2cmp')
-rw-r--r--xml2cmp/source/xcd/filebuff.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xml2cmp/source/xcd/filebuff.cxx b/xml2cmp/source/xcd/filebuff.cxx
index b921861af133..d47f2d36d91f 100644
--- a/xml2cmp/source/xcd/filebuff.cxx
+++ b/xml2cmp/source/xcd/filebuff.cxx
@@ -52,7 +52,7 @@ LoadXmlFile( Buffer & o_rBuffer,
// Read file:
aXmlFile.read(o_rBuffer.Data(), (int) nBufferSize);
- bool ret = aXmlFile.good() != 0;
+ const bool ret = !aXmlFile.fail();
aXmlFile.close();
return ret;
}