diff --git a/SystemTools.cxx b/SystemTools.cxx index 12d93e2a2790376232a420b8ff6be32d97f04866..93c452780ef2aff29956496260693a0c4ca62fb5 100644 --- a/SystemTools.cxx +++ b/SystemTools.cxx @@ -3536,9 +3536,7 @@ void SystemTools::SplitPath(const char* p, if(*last == '/' || *last == '\\') { // End of a component. Save it. - components.push_back( - kwsys_stl::string(first,static_cast<kwsys_stl::string::size_type>( - last-first))); + components.push_back(kwsys_stl::string(first, last)); first = last+1; } } @@ -3546,9 +3544,7 @@ void SystemTools::SplitPath(const char* p, // Save the last component unless there were no components. if(last != c) { - components.push_back( - kwsys_stl::string(first,static_cast<kwsys_stl::string::size_type>( - last-first))); + components.push_back(kwsys_stl::string(first, last)); } }