diff options
| author | Enrico Granata <egranata@apple.com> | 2015-11-14 01:09:07 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2015-11-14 01:09:07 +0000 |
| commit | 54c22c2245a40a0b18e64905b422cead19d9d527 (patch) | |
| tree | fb19e6fa51e4dffe6f3297af7d11e03a27854b40 | |
| parent | 92655f58bca1e4bef18443461a53eb09e5637b62 (diff) | |
| download | bcm5719-llvm-54c22c2245a40a0b18e64905b422cead19d9d527.tar.gz bcm5719-llvm-54c22c2245a40a0b18e64905b422cead19d9d527.zip | |
Fixes for uniformity in type clear and delete commands
llvm-svn: 253113
| -rw-r--r-- | lldb/source/Commands/CommandObjectType.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lldb/source/Commands/CommandObjectType.cpp b/lldb/source/Commands/CommandObjectType.cpp index 8669c03a6e5..022b326120e 100644 --- a/lldb/source/Commands/CommandObjectType.cpp +++ b/lldb/source/Commands/CommandObjectType.cpp @@ -1160,10 +1160,8 @@ private: PerCategoryCallback(void* param, const lldb::TypeCategoryImplSP& cate) { - cate->GetTypeFormatsContainer()->Clear(); - cate->GetRegexTypeFormatsContainer()->Clear(); + cate->Clear(eFormatCategoryItemValue | eFormatCategoryItemRegexValue); return true; - } public: @@ -3581,10 +3579,11 @@ private: static bool PerCategoryCallback(void* param, - const lldb::TypeCategoryImplSP& cate) + const lldb::TypeCategoryImplSP& category_sp) { ConstString *name = (ConstString*)param; - return cate->Delete(*name, eFormatCategoryItemFilter | eFormatCategoryItemRegexFilter); + category_sp->Delete(*name, eFormatCategoryItemFilter | eFormatCategoryItemRegexFilter); + return true; } public: @@ -3761,10 +3760,11 @@ private: static bool PerCategoryCallback(void* param, - const lldb::TypeCategoryImplSP& cate) + const lldb::TypeCategoryImplSP& category_sp) { - ConstString* name = (ConstString*)param; - return cate->Delete(*name, eFormatCategoryItemSynth | eFormatCategoryItemRegexSynth); + ConstString *name = (ConstString*)param; + category_sp->Delete(*name, eFormatCategoryItemSynth | eFormatCategoryItemRegexSynth); + return true; } public: |

