From 4c20717a8fb2a6bd326d2605f9929296baf0c7fe Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Tue, 19 Apr 2011 22:32:36 +0000 Subject: General cleanup on the UserSettingsController stuff. There were 5 different places that were dumping values for the settings. Centralized all of the value dumping into a single place. When dumping values that aren't strings we no longer surround the value with single quotes. When dumping values that are strings, surround the string value with double quotes. When dumping array values, assume they are always string values, and don't put quotes around dictionary values. llvm-svn: 129826 --- lldb/source/Commands/CommandObjectApropos.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lldb/source/Commands/CommandObjectApropos.cpp') 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) -- cgit v1.2.3