Convert CommandObject constructors to StringRef.
llvm-svn: 283384
diff --git a/lldb/source/Commands/CommandObjectSource.cpp b/lldb/source/Commands/CommandObjectSource.cpp
index 55e724a..b0231a7 100644
--- a/lldb/source/Commands/CommandObjectSource.cpp
+++ b/lldb/source/Commands/CommandObjectSource.cpp
@@ -585,7 +585,7 @@
if (argc != 0) {
result.AppendErrorWithFormat("'%s' takes no arguments, only flags.\n",
- GetCommandName());
+ GetCommandName().str().c_str());
result.SetStatus(eReturnStatusFailed);
return false;
}
@@ -990,7 +990,7 @@
if (argc != 0) {
result.AppendErrorWithFormat("'%s' takes no arguments, only flags.\n",
- GetCommandName());
+ GetCommandName().str().c_str());
result.SetStatus(eReturnStatusFailed);
return false;
}