diff options
author | Davide Italiano <davide@freebsd.org> | 2018-05-02 23:36:07 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2018-05-02 23:36:07 +0000 |
commit | 1f6277eb4d905ac46df120e1a059fc67790ca62c (patch) | |
tree | 1e2e61ef5a18f87217dee792acb47c5f738dcea4 /lldb/source/Plugins/Language/ObjC | |
parent | 4d57fbd02a8cb16045da65e078e72aa68e4ac21e (diff) | |
download | bcm5719-llvm-1f6277eb4d905ac46df120e1a059fc67790ca62c.tar.gz bcm5719-llvm-1f6277eb4d905ac46df120e1a059fc67790ca62c.zip |
[NSDictionary] Simplify the formatter. NFCI.
llvm-svn: 331415
Diffstat (limited to 'lldb/source/Plugins/Language/ObjC')
-rw-r--r-- | lldb/source/Plugins/Language/ObjC/NSDictionary.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp b/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp index 67b0ce863a7..b4d25789ef5 100644 --- a/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp +++ b/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp @@ -667,11 +667,7 @@ lldb_private::formatters::NSDictionary1SyntheticFrontEnd:: size_t lldb_private::formatters::NSDictionary1SyntheticFrontEnd:: GetIndexOfChildWithName(const ConstString &name) { static const ConstString g_zero("[0]"); - - if (name == g_zero) - return 0; - - return UINT32_MAX; + return name == g_zero ? 0 : UINT32_MAX; } size_t lldb_private::formatters::NSDictionary1SyntheticFrontEnd:: |