[NSDictionary] Simplify the formatter. NFCI.

llvm-svn: 331415
This commit is contained in:
Davide Italiano 2018-05-02 23:36:07 +00:00
parent 4d57fbd02a
commit 1f6277eb4d
1 changed files with 1 additions and 5 deletions

View File

@ -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::