summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectApropos.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands/CommandObjectApropos.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectApropos.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectApropos.cpp b/lldb/source/Commands/CommandObjectApropos.cpp
index 1d003fc888e..3b4b3501596 100644
--- a/lldb/source/Commands/CommandObjectApropos.cpp
+++ b/lldb/source/Commands/CommandObjectApropos.cpp
@@ -99,9 +99,12 @@ CommandObjectApropos::Execute
StreamString settings_search_results;
lldb::UserSettingsControllerSP root = Debugger::GetSettingsController ();
- std::string settings_prefix = root->GetLevelName().AsCString();
+ const char *settings_prefix = root->GetLevelName().GetCString();
- UserSettingsController::SearchAllSettingsDescriptions (m_interpreter, root, settings_prefix, search_word,
+ UserSettingsController::SearchAllSettingsDescriptions (m_interpreter,
+ root,
+ settings_prefix,
+ search_word,
settings_search_results);
if (settings_search_results.GetSize() > 0)
OpenPOWER on IntegriCloud