summaryrefslogtreecommitdiff
path: root/xml2cmp
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2006-09-25 12:26:56 +0000
committerVladimir Glazounov <vg@openoffice.org>2006-09-25 12:26:56 +0000
commitde4f6e7864942ed2bd31e83caf1826331bb17d5c (patch)
tree6d12ac75f18bea2d13956f929e669209d7d36895 /xml2cmp
parent0f5505167158f95300b440fadf6c6adfb3c4f603 (diff)
INTEGRATION: CWS obo05 (1.7.16); FILE MERGED
2006/06/27 13:15:59 obo 1.7.16.1: #i53611# port for .net 2005
Diffstat (limited to 'xml2cmp')
-rw-r--r--xml2cmp/source/xcd/filebuff.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/xml2cmp/source/xcd/filebuff.cxx b/xml2cmp/source/xcd/filebuff.cxx
index c722565fe630..be0e623a059d 100644
--- a/xml2cmp/source/xcd/filebuff.cxx
+++ b/xml2cmp/source/xcd/filebuff.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: filebuff.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 12:02:26 $
+ * last change: $Author: vg $ $Date: 2006-09-25 13:26:56 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -57,16 +57,15 @@ LoadXmlFile( Buffer & o_rBuffer,
// Prepare buffer:
aXmlFile.seekg(0, std::ios::end);
- unsigned long nBufferSize = aXmlFile.tellg();
+ unsigned long nBufferSize = (unsigned long) aXmlFile.tellg();
o_rBuffer.SetSize(nBufferSize + 1);
o_rBuffer.Data()[nBufferSize] = '\0';
aXmlFile.seekg(0);
// Read file:
- aXmlFile.read(o_rBuffer.Data(), nBufferSize);
+ aXmlFile.read(o_rBuffer.Data(), (int) nBufferSize);
bool ret = aXmlFile.good() != 0;
aXmlFile.close();
return ret;
}
-