summaryrefslogtreecommitdiff
path: root/lldb/source/Utility/Broadcaster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Utility/Broadcaster.cpp')
-rw-r--r--lldb/source/Utility/Broadcaster.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Utility/Broadcaster.cpp b/lldb/source/Utility/Broadcaster.cpp
index ee0c39f8fd424..342548c0b0e61 100644
--- a/lldb/source/Utility/Broadcaster.cpp
+++ b/lldb/source/Utility/Broadcaster.cpp
@@ -1,4 +1,4 @@
-//===-- Broadcaster.cpp -----------------------------------------*- C++ -*-===//
+//===-- Broadcaster.cpp ---------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -30,7 +30,7 @@ Broadcaster::Broadcaster(BroadcasterManagerSP manager_sp, const char *name)
m_manager_sp(std::move(manager_sp)), m_broadcaster_name(name) {
Log *log(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_OBJECT));
LLDB_LOG(log, "{0} Broadcaster::Broadcaster(\"{1}\")",
- static_cast<void *>(this), GetBroadcasterName().AsCString());
+ static_cast<void *>(this), GetBroadcasterName());
}
Broadcaster::BroadcasterImpl::BroadcasterImpl(Broadcaster &broadcaster)
@@ -40,7 +40,7 @@ Broadcaster::BroadcasterImpl::BroadcasterImpl(Broadcaster &broadcaster)
Broadcaster::~Broadcaster() {
Log *log(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_OBJECT));
LLDB_LOG(log, "{0} Broadcaster::~Broadcaster(\"{1}\")",
- static_cast<void *>(this), GetBroadcasterName().AsCString());
+ static_cast<void *>(this), GetBroadcasterName());
Clear();
}
@@ -373,8 +373,8 @@ bool BroadcasterManager::UnregisterListenerForEvents(
if (event_bits_to_remove != iter_event_bits) {
uint32_t new_event_bits = iter_event_bits & ~event_bits_to_remove;
- to_be_readded.push_back(
- BroadcastEventSpec(event_spec.GetBroadcasterClass(), new_event_bits));
+ to_be_readded.emplace_back(event_spec.GetBroadcasterClass(),
+ new_event_bits);
}
m_event_map.erase(iter);
}
@@ -406,7 +406,7 @@ void BroadcasterManager::RemoveListener(Listener *listener) {
listener_collection::iterator iter = m_listeners.begin(),
end_iter = m_listeners.end();
- std::find_if(iter, end_iter, predicate);
+ iter = std::find_if(iter, end_iter, predicate);
if (iter != end_iter)
m_listeners.erase(iter);