summaryrefslogtreecommitdiffstats
path: root/lldb/include/lldb/Utility/StructuredData.h
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/include/lldb/Utility/StructuredData.h')
-rw-r--r--lldb/include/lldb/Utility/StructuredData.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/include/lldb/Utility/StructuredData.h b/lldb/include/lldb/Utility/StructuredData.h
index d4b589f5ba7..100b4fa98ae 100644
--- a/lldb/include/lldb/Utility/StructuredData.h
+++ b/lldb/include/lldb/Utility/StructuredData.h
@@ -170,7 +170,7 @@ public:
bool
ForEach(std::function<bool(Object *object)> const &foreach_callback) const {
for (const auto &object_sp : m_items) {
- if (foreach_callback(object_sp.get()) == false)
+ if (!foreach_callback(object_sp.get()))
return false;
}
return true;
@@ -359,7 +359,7 @@ public:
void ForEach(std::function<bool(ConstString key, Object *object)> const
&callback) const {
for (const auto &pair : m_dict) {
- if (callback(pair.first, pair.second.get()) == false)
+ if (!callback(pair.first, pair.second.get()))
break;
}
}
OpenPOWER on IntegriCloud