Przeglądaj źródła

STYLE: fix compiler warning

Bill Hoffman 18 lat temu
rodzic
commit
f4ac0f8373
2 zmienionych plików z 4 dodań i 3 usunięć
  1. 3 2
      Source/cmXMLParser.cxx
  2. 1 1
      Source/cmXMLParser.h

+ 3 - 2
Source/cmXMLParser.cxx

@@ -39,7 +39,7 @@ cmXMLParser::~cmXMLParser()
 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::InitializeParser()
 }
 
 //----------------------------------------------------------------------------
-int cmXMLParser::ParseChunk(const char* inputString, unsigned int length)
+int cmXMLParser::ParseChunk(const char* inputString, 
+                            std::string::size_type length)
 {
   if ( !this->Parser )
     {

+ 1 - 1
Source/cmXMLParser.h

@@ -52,7 +52,7 @@ public:
    * 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: