You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/02/15 13:26:53 UTC
svn commit: r1446550 - /openoffice/trunk/main/xml2cmp/source/xcd/filebuff.cxx
Author: hdu
Date: Fri Feb 15 12:26:52 2013
New Revision: 1446550
URL: http://svn.apache.org/r1446550
Log:
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
Modified:
openoffice/trunk/main/xml2cmp/source/xcd/filebuff.cxx
Modified: openoffice/trunk/main/xml2cmp/source/xcd/filebuff.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/xml2cmp/source/xcd/filebuff.cxx?rev=1446550&r1=1446549&r2=1446550&view=diff
==============================================================================
--- openoffice/trunk/main/xml2cmp/source/xcd/filebuff.cxx (original)
+++ openoffice/trunk/main/xml2cmp/source/xcd/filebuff.cxx Fri Feb 15 12:26:52 2013
@@ -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;
}