[cmake-commits] hoffman committed cmXMLParser.cxx 1.5 1.6 cmXMLParser.h 1.2 1.3

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Jul 25 09:22:21 EDT 2007


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv9149/Source

Modified Files:
	cmXMLParser.cxx cmXMLParser.h 
Log Message:
STYLE: fix compiler warning


Index: cmXMLParser.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmXMLParser.cxx,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- cmXMLParser.cxx	19 Oct 2006 19:00:08 -0000	1.5
+++ cmXMLParser.cxx	25 Jul 2007 13:22:19 -0000	1.6
@@ -39,7 +39,7 @@
 int cmXMLParser::Parse(const char* string)
 {
   return (int)this->InitializeParser() &&
-    this->ParseChunk(string, (unsigned int)strlen(string)) && 
+    this->ParseChunk(string, strlen(string)) && 
     this->CleanupParser();
 }
 
@@ -84,7 +84,8 @@
 }
 
 //----------------------------------------------------------------------------
-int cmXMLParser::ParseChunk(const char* inputString, unsigned int length)
+int cmXMLParser::ParseChunk(const char* inputString, 
+                            std::string::size_type length)
 {
   if ( !this->Parser )
     {

Index: cmXMLParser.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmXMLParser.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- cmXMLParser.h	12 May 2006 18:36:39 -0000	1.2
+++ cmXMLParser.h	25 Jul 2007 13:22:19 -0000	1.3
@@ -52,7 +52,7 @@
    * them.
    */
   virtual int InitializeParser();
-  virtual int ParseChunk(const char* inputString, unsigned int length);
+  virtual int ParseChunk(const char* inputString, std::string::size_type length);
   virtual int CleanupParser();
 
 protected:



More information about the Cmake-commits mailing list