From 70e1b11e65d5d0ba56205a8005b1decdd8be0367 Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Tue, 16 Jan 2018 22:19:52 +0000 Subject: [PATCH] Renaming of some snake-case functions missed in prior rename batches. --- src/control.cc | 4 ++-- src/includes/service.h | 6 +++--- src/load_service.cc | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/control.cc b/src/control.cc index 395ae49..85a70ec 100644 --- a/src/control.cc +++ b/src/control.cc @@ -308,7 +308,7 @@ control_conn_t::handle_t control_conn_t::allocate_service_handle(service_record serviceKeyMap.insert(std::make_pair(record, candidate)); if (is_unique) { - record->addListener(this); + record->add_listener(this); } return candidate; @@ -523,7 +523,7 @@ control_conn_t::~control_conn_t() noexcept // Clear service listeners for (auto p : serviceKeyMap) { - p.first->removeListener(this); + p.first->remove_listener(this); } active_control_conns--; diff --git a/src/includes/service.h b/src/includes/service.h index 47aae1b..b0cf50a 100644 --- a/src/includes/service.h +++ b/src/includes/service.h @@ -562,19 +562,19 @@ class service_record // commence starting/stopping. void unpin() noexcept; - bool isDummy() noexcept + bool is_dummy() noexcept { return record_type == service_type_t::DUMMY; } // Add a listener. A listener must only be added once. May throw std::bad_alloc. - void addListener(service_listener * listener) + void add_listener(service_listener * listener) { listeners.insert(listener); } // Remove a listener. - void removeListener(service_listener * listener) noexcept + void remove_listener(service_listener * listener) noexcept { listeners.erase(listener); } diff --git a/src/load_service.cc b/src/load_service.cc index 21bff4d..7944cb3 100644 --- a/src/load_service.cc +++ b/src/load_service.cc @@ -371,7 +371,7 @@ service_record * dirload_service_set::load_service(const char * name) // First try and find an existing record... service_record * rval = find_service(string(name)); if (rval != 0) { - if (rval->isDummy()) { + if (rval->is_dummy()) { throw service_cyclic_dependency(name); } return rval; -- 2.25.1