From: akl Date: Fri, 23 May 2014 06:09:17 +0000 (+0400) Subject: Fix the parsing string to tree. X-Git-Tag: V7_5_0a1~50^2~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=48a0c1cf096942629557bb3cd09ecf2d053e4a4b;p=modules%2Fgeom.git Fix the parsing string to tree. --- diff --git a/src/GEOMUtils/GEOMUtils.cxx b/src/GEOMUtils/GEOMUtils.cxx index 9412e55e3..69e474e02 100644 --- a/src/GEOMUtils/GEOMUtils.cxx +++ b/src/GEOMUtils/GEOMUtils.cxx @@ -1024,16 +1024,16 @@ LevelsList parseWard( const std::string& theData, std::size_t& theCursor ) for( int level = 0; level < levelsListStr.size(); level++ ) { std::cout<<" Level" << level + 1 << ":" << std::endl; std::vector namesListStr; - ss.str( levelsListStr[level] ); - while ( std::getline( ss, substr, ',' ) ) { + std::stringstream ss1( levelsListStr[level] ); + while ( std::getline( ss1, substr, ',' ) ) { if ( !substr.empty() ) namesListStr.push_back( substr ); } LevelInfo levelInfoData; for( int node = 0; node < namesListStr.size(); node++ ) { std::vector linksListStr; - ss.str( namesListStr[node] ); - while ( std::getline( ss, substr, '_' ) ) { + std::stringstream ss2( namesListStr[node] ); + while ( std::getline( ss2, substr, '_' ) ) { if ( !substr.empty() ) linksListStr.push_back( substr ); }