summaryrefslogtreecommitdiffstats
path: root/Source/cmXMLParser.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-07-25 13:22:19 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-07-25 13:22:19 (GMT)
commitf4ac0f8373aeb96aae4cd24359586bf1a18c7f7b (patch)
treee79b035fe11d0db5f462d04a7409b77fbae7f166 /Source/cmXMLParser.cxx
parentef1e66e92f2b4ebc10d9cdc62a951cf88620dcf9 (diff)
downloadCMake-f4ac0f8373aeb96aae4cd24359586bf1a18c7f7b.zip
CMake-f4ac0f8373aeb96aae4cd24359586bf1a18c7f7b.tar.gz
CMake-f4ac0f8373aeb96aae4cd24359586bf1a18c7f7b.tar.bz2
STYLE: fix compiler warning
Diffstat (limited to 'Source/cmXMLParser.cxx')
-rw-r--r--Source/cmXMLParser.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmXMLParser.cxx b/Source/cmXMLParser.cxx
index 2894090..016514c 100644
--- a/Source/cmXMLParser.cxx
+++ b/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 )
{