@@ -89,8 +89,7 @@ int ReadPathFile( const char * PathFilename, typename PathFilterType::Pointer pa
8989 itksys::SystemTools::ReplaceString ( line, " Path: " , " " );
9090 itksys::SystemTools::ReplaceString ( line, " " , " " );
9191 itksys::SystemTools::ReplaceString ( line, " [" , " " );
92- std::vector<itksys::String> parts;
93- parts = itksys::SystemTools::SplitString ( line.c_str (), ' ]' );
92+ std::vector<std::string> parts = itksys::SystemTools::SplitString ( line, ' ]' );
9493 std::vector<std::string>::size_type numNonNullParts = 0 ;
9594 for (auto & part : parts)
9695 if ( part.length () != 0 ) numNonNullParts++;
@@ -99,8 +98,7 @@ int ReadPathFile( const char * PathFilename, typename PathFilterType::Pointer pa
9998 if ( parts[i].length () != 0 )
10099 {
101100 typename PathFilterType::PointType point;
102- std::vector<itksys::String> partsPoint;
103- partsPoint = itksys::SystemTools::SplitString ( parts[i].c_str (), ' ,' );
101+ std::vector<std::string> partsPoint = itksys::SystemTools::SplitString ( parts[i], ' ,' );
104102 for (std::vector<std::string>::size_type j=0 ; j<partsPoint.size (); j++)
105103 point[j] = std::stod ( partsPoint[j].c_str () );
106104 if ( i==0 ) info->SetStartPoint ( point );
0 commit comments