summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/CommandLineArguments.cxx
diff options
context:
space:
mode:
authorFrancois Bertel <francois.bertel@kitware.com>2009-03-19 13:20:40 (GMT)
committerFrancois Bertel <francois.bertel@kitware.com>2009-03-19 13:20:40 (GMT)
commita638a2f8a0e066ff760c34801c00ab2b431e88e8 (patch)
treee97de67ec2e37ed58c0360776ff8a8b3d2d5d72a /Source/kwsys/CommandLineArguments.cxx
parent675b76d931e53dd5f951391aab33558333d78a0b (diff)
downloadCMake-a638a2f8a0e066ff760c34801c00ab2b431e88e8.zip
CMake-a638a2f8a0e066ff760c34801c00ab2b431e88e8.tar.gz
CMake-a638a2f8a0e066ff760c34801c00ab2b431e88e8.tar.bz2
COMP:Fixed warnings.
Diffstat (limited to 'Source/kwsys/CommandLineArguments.cxx')
-rw-r--r--Source/kwsys/CommandLineArguments.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/kwsys/CommandLineArguments.cxx b/Source/kwsys/CommandLineArguments.cxx
index f95e8d6..284aea4 100644
--- a/Source/kwsys/CommandLineArguments.cxx
+++ b/Source/kwsys/CommandLineArguments.cxx
@@ -521,7 +521,7 @@ unsigned int CommandLineArguments::GetLastArgument()
void CommandLineArguments::GenerateHelp()
{
kwsys_ios::ostringstream str;
-
+
// Collapse all arguments into the map of vectors of all arguments that do
// the same thing.
CommandLineArguments::Internal::CallbacksMap::iterator it;
@@ -660,7 +660,7 @@ void CommandLineArguments::GenerateHelp()
skip = cc;
}
}
- str.write(ptr, skip);
+ str.write(ptr, static_cast<kwsys_stl::streamsize>(skip));
str << kwsys_ios::endl;
ptr += skip;
len -= skip;
@@ -701,7 +701,7 @@ void CommandLineArguments::PopulateVariable(
int* variable, const kwsys_stl::string& value)
{
char* res = 0;
- *variable = strtol(value.c_str(), &res, 10);
+ *variable = static_cast<int>(strtol(value.c_str(), &res, 10));
//if ( res && *res )
// {
// Can handle non-int
@@ -759,7 +759,7 @@ void CommandLineArguments::PopulateVariable(
kwsys_stl::vector<int>* variable, const kwsys_stl::string& value)
{
char* res = 0;
- variable->push_back(strtol(value.c_str(), &res, 10));
+ variable->push_back(static_cast<int>(strtol(value.c_str(), &res, 10)));
//if ( res && *res )
// {
// Can handle non-int