Meta: replace empty-string assignments with clear().

This commit is contained in:
Pavel Solodovnikov
2017-09-16 02:26:49 +03:00
parent c0c5f924fe
commit 5db3aac111
70 changed files with 214 additions and 214 deletions
+2 -2
View File
@@ -234,7 +234,7 @@ int cmCommandArgumentParserHelper::ParseString(const char* str, int verb)
this->InputBufferPos = 0;
this->CurrentLine = 0;
this->Result = "";
this->Result.clear();
yyscan_t yyscanner;
cmCommandArgument_yylex_init(&yyscanner);
@@ -298,7 +298,7 @@ void cmCommandArgumentParserHelper::SetMakefile(const cmMakefile* mf)
void cmCommandArgumentParserHelper::SetResult(const char* value)
{
if (!value) {
this->Result = "";
this->Result.clear();
return;
}
this->Result = value;