Make CommandObject help getters/setters use StringRef.

llvm-svn: 286731
This commit is contained in:
Zachary Turner
2016-11-12 20:41:02 +00:00
parent e2411fabda
commit 442f6530d2
10 changed files with 116 additions and 116 deletions

View File

@@ -71,7 +71,7 @@ bool CommandObjectRegexCommand::DoExecute(const char *command,
}
}
result.SetStatus(eReturnStatusFailed);
if (GetSyntax() != nullptr)
if (!GetSyntax().empty())
result.AppendError(GetSyntax());
else
result.AppendErrorWithFormat("Command contents '%s' failed to match any "