From 027f1c9655391dcb2b0117f931f720211ac933db Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 6 Sep 2015 14:32:30 +0000 Subject: Vendor import of (stripped) lldb trunk r242221: https://llvm.org/svn/llvm-project/lldb/trunk@242221 --- include/lldb/Core/StructuredData.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/lldb/Core/StructuredData.h') diff --git a/include/lldb/Core/StructuredData.h b/include/lldb/Core/StructuredData.h index 8acfa310deacf..7da29e48299d7 100644 --- a/include/lldb/Core/StructuredData.h +++ b/include/lldb/Core/StructuredData.h @@ -238,14 +238,15 @@ public: { } - void + bool ForEach (std::function const &foreach_callback) const { for (const auto &object_sp : m_items) { if (foreach_callback(object_sp.get()) == false) - break; + return false; } + return true; } -- cgit v1.2.3