diff --git a/Source/cmXMLParser.cxx b/Source/cmXMLParser.cxx index 016514c69..e9dca1353 100644 --- a/Source/cmXMLParser.cxx +++ b/Source/cmXMLParser.cxx @@ -130,7 +130,7 @@ int cmXMLParser::CleanupParser() } //---------------------------------------------------------------------------- -int cmXMLParser::ParseBuffer(const char* buffer, unsigned int count) +int cmXMLParser::ParseBuffer(const char* buffer, std::string::size_type count) { // Pass the buffer to the expat XML parser. if(!XML_Parse(static_cast(this->Parser), buffer, count, 0)) diff --git a/Source/cmXMLParser.h b/Source/cmXMLParser.h index 5568920f5..3580e8c85 100644 --- a/Source/cmXMLParser.h +++ b/Source/cmXMLParser.h @@ -52,7 +52,8 @@ public: * them. */ virtual int InitializeParser(); - virtual int ParseChunk(const char* inputString, std::string::size_type length); + virtual int ParseChunk(const char* inputString, + std::string::size_type length); virtual int CleanupParser(); protected: @@ -95,7 +96,8 @@ protected: static int IsSpace(char c); //! Send the given buffer to the XML parser. - virtual int ParseBuffer(const char* buffer, unsigned int count); + virtual int ParseBuffer(const char* buffer, + std::string::size_type length); //! Send the given c-style string to the XML parser. int ParseBuffer(const char* buffer);