Skip to content

Commit f35cacf

Browse files
committed
use replaceAll from PDAL
1 parent dc30d35 commit f35cacf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pdal/test/Support.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ uint32_t Support::diff_text_files(std::istream& str1, std::istream& str2,
137137
std::getline(str2, buf2);
138138

139139
// Remove \r's
140-
buf1.erase( std::remove(buf1.begin(), buf1.end(), '\r'), buf1.end() );
141-
buf2.erase( std::remove(buf2.begin(), buf2.end(), '\r'), buf2.end() );
140+
pdal::Utils::replaceAll(buf1, "\r", "");
141+
pdal::Utils::replaceAll(buf2, "\r", "");
142142

143143
if (currLine == ignoreLine1)
144144
{

0 commit comments

Comments
 (0)