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;
 }


Reply via email to