Convert CommandObject constructors to StringRef.
llvm-svn: 283384
diff --git a/lldb/source/Target/LanguageRuntime.cpp b/lldb/source/Target/LanguageRuntime.cpp
index 24da18f..cacb491 100644
--- a/lldb/source/Target/LanguageRuntime.cpp
+++ b/lldb/source/Target/LanguageRuntime.cpp
@@ -287,12 +287,10 @@
command_callback(parent->GetCommandInterpreter());
if (command) {
// the CommandObject vended by a Language plugin cannot be created once
- // and cached because
- // we may create multiple debuggers and need one instance of the command
- // each - the implementing function
- // is meant to create a new instance of the command each time it is
- // invoked
- parent->LoadSubCommand(command->GetCommandName(), command);
+ // and cached because we may create multiple debuggers and need one
+ // instance of the command each - the implementing function is meant to
+ // create a new instance of the command each time it is invoked.
+ parent->LoadSubCommand(command->GetCommandName().str().c_str(), command);
}
}
}