diff options
Diffstat (limited to 'include/lldb/Core/StructuredData.h')
-rw-r--r-- | include/lldb/Core/StructuredData.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/lldb/Core/StructuredData.h b/include/lldb/Core/StructuredData.h index 8acfa31..7da29e4 100644 --- a/include/lldb/Core/StructuredData.h +++ b/include/lldb/Core/StructuredData.h @@ -238,14 +238,15 @@ public: { } - void + 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) - break; + return false; } + return true; } |