summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectApropos.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-04-19 22:32:36 +0000
committerGreg Clayton <gclayton@apple.com>2011-04-19 22:32:36 +0000
commit4c20717a8fb2a6bd326d2605f9929296baf0c7fe (patch)
treeb9850b25c8acf33c5a31f5fd6e25c7b5913c882f /lldb/source/Commands/CommandObjectApropos.cpp
parent742668144eb8e02c9303a37445ebd82568ffd4a5 (diff)
downloadbcm5719-llvm-4c20717a8fb2a6bd326d2605f9929296baf0c7fe.tar.gz
bcm5719-llvm-4c20717a8fb2a6bd326d2605f9929296baf0c7fe.zip
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
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