mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
Meta: replace empty-string assignments with clear().
This commit is contained in:
@@ -73,11 +73,11 @@ bool cmProcessTools::LineParser::ProcessChunk(const char* first, int length)
|
||||
|
||||
// Hand this line to the subclass implementation.
|
||||
if (!this->ProcessLine()) {
|
||||
this->Line = "";
|
||||
this->Line.clear();
|
||||
return false;
|
||||
}
|
||||
|
||||
this->Line = "";
|
||||
this->Line.clear();
|
||||
} else if (*c != '\r' || !this->IgnoreCR) {
|
||||
// Append this character to the line under construction.
|
||||
this->Line.append(1, *c);
|
||||
|
||||
Reference in New Issue
Block a user