mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 14:40:26 -06:00
STYLE: fix compiler warning
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user