From a44ff15a6114ee1fbcb9a8f9b1269fea19806013 Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Mon, 4 Mar 2019 14:55:53 +0100 Subject: [PATCH] snake case this bool --- include/simgrid/s4u/Host.hpp | 2 +- src/s4u/s4u_Host.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/simgrid/s4u/Host.hpp b/include/simgrid/s4u/Host.hpp index 4af625a22c..59ab43ccfc 100644 --- a/include/simgrid/s4u/Host.hpp +++ b/include/simgrid/s4u/Host.hpp @@ -47,7 +47,7 @@ protected: virtual ~Host(); private: - bool currentlyDestroying_ = false; + bool currently_destroying_ = false; public: /*** Called on each newly created host */ diff --git a/src/s4u/s4u_Host.cpp b/src/s4u/s4u_Host.cpp index 68698e80c1..3f5d4d4f0e 100644 --- a/src/s4u/s4u_Host.cpp +++ b/src/s4u/s4u_Host.cpp @@ -39,7 +39,7 @@ Host::Host(std::string name) : name_(std::move(name)) Host::~Host() { - xbt_assert(currentlyDestroying_, "Please call h->destroy() instead of manually deleting it."); + xbt_assert(currently_destroying_, "Please call h->destroy() instead of manually deleting it."); delete pimpl_; if (pimpl_netpoint != nullptr) // not removed yet by a children class @@ -58,8 +58,8 @@ Host::~Host() */ void Host::destroy() { - if (not currentlyDestroying_) { - currentlyDestroying_ = true; + if (not currently_destroying_) { + currently_destroying_ = true; on_destruction(*this); Engine::get_instance()->host_unregister(std::string(name_)); delete this; -- 2.20.1