mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
Meta: replace empty-string assignments with clear().
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user