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
commitfbe4eccc6ba4af1d9fef75ddd52bd194fc019513 (patch)
treeb4ac956da746d82527aafc480634b7dad8266b48 /xml2cmp
parent1fae02b404daf9402cd58b6655b9d3a19de7bf0c (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 6b380099d..ab36e1fcf 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;
}
-