diff options
author | Zachary Turner <zturner@google.com> | 2016-11-12 20:41:02 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-11-12 20:41:02 +0000 |
commit | 442f6530d21d0980c591522a1bd35dcaebce6f68 (patch) | |
tree | d0dfcd032d930ebc77461e41520f4a73012f0c76 /lldb/source/API/SBCommandInterpreter.cpp | |
parent | e2411fabdaf01d883d77cf3f8456367a9dc685ff (diff) | |
download | bcm5719-llvm-442f6530d21d0980c591522a1bd35dcaebce6f68.tar.gz bcm5719-llvm-442f6530d21d0980c591522a1bd35dcaebce6f68.zip |
Make CommandObject help getters/setters use StringRef.
llvm-svn: 286731
Diffstat (limited to 'lldb/source/API/SBCommandInterpreter.cpp')
-rw-r--r-- | lldb/source/API/SBCommandInterpreter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/API/SBCommandInterpreter.cpp b/lldb/source/API/SBCommandInterpreter.cpp index 45f8ab364b2..aa4953999b8 100644 --- a/lldb/source/API/SBCommandInterpreter.cpp +++ b/lldb/source/API/SBCommandInterpreter.cpp @@ -542,11 +542,13 @@ const char *SBCommand::GetName() { } const char *SBCommand::GetHelp() { - return (IsValid() ? m_opaque_sp->GetHelp() : nullptr); + return (IsValid() ? ConstString(m_opaque_sp->GetHelp()).AsCString() + : nullptr); } const char *SBCommand::GetHelpLong() { - return (IsValid() ? m_opaque_sp->GetHelpLong() : nullptr); + return (IsValid() ? ConstString(m_opaque_sp->GetHelpLong()).AsCString() + : nullptr); } void SBCommand::SetHelp(const char *help) { |