Skip to content

Commit 573c6b5

Browse files
dzenanzthewtex
authored andcommitted
COMP: replace itksys::String by std::string
This is required due to recent update of KWSYS in ITK.
1 parent 87c2305 commit 573c6b5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/MinimalPathTest.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)