Skip to content

Commit 13165e5

Browse files
committed
explicitly remove \r's
1 parent f45034b commit 13165e5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/pdal/test/Support.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +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-
pdal::Utils::replaceAll(buf1, "\r\n", "\n");
141-
pdal::Utils::replaceAll(buf2, "\r\n", "\n");
142-
// buf1.erase( std::remove(buf1.begin(), buf1.end(), '\r'), buf1.end() );
143-
// buf2.erase( std::remove(buf2.begin(), buf2.end(), '\r'), buf2.end() );
140+
buf1.erase( std::remove(buf1.begin(), buf1.end(), '\r'), buf1.end() );
141+
buf2.erase( std::remove(buf2.begin(), buf2.end(), '\r'), buf2.end() );
144142

145143
if (currLine == ignoreLine1)
146144
{

0 commit comments

Comments
 (0)