From f0cec3b2f1b1bc6634659bd5dec445cd27e8ac0c Mon Sep 17 00:00:00 2001 From: Joe Loser Date: Fri, 11 May 2018 20:37:21 -0600 Subject: [PATCH] Rename LoadEvent member function reName to setName --- src/ripple/core/LoadEvent.h | 3 +-- src/ripple/core/impl/Job.cpp | 2 +- src/ripple/core/impl/LoadEvent.cpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ripple/core/LoadEvent.h b/src/ripple/core/LoadEvent.h index a393c779cd5..b4b1bf4aed9 100644 --- a/src/ripple/core/LoadEvent.h +++ b/src/ripple/core/LoadEvent.h @@ -55,8 +55,7 @@ class LoadEvent std::chrono::steady_clock::duration runTime() const; - // VFALCO TODO rename this to setName () or setLabel () - void reName (std::string const& name); + void setName (std::string const& name); // Start the measurement. If already started, then // restart, assigning the elapsed time to the "waiting" diff --git a/src/ripple/core/impl/Job.cpp b/src/ripple/core/impl/Job.cpp index 69214512cff..a1b9dba79bb 100644 --- a/src/ripple/core/impl/Job.cpp +++ b/src/ripple/core/impl/Job.cpp @@ -78,7 +78,7 @@ void Job::doJob () { beast::setCurrentThreadName ("doJob: " + mName); m_loadEvent->start (); - m_loadEvent->reName (mName); + m_loadEvent->setName (mName); mJob (*this); diff --git a/src/ripple/core/impl/LoadEvent.cpp b/src/ripple/core/impl/LoadEvent.cpp index f431f1b4ea0..74b69e52695 100644 --- a/src/ripple/core/impl/LoadEvent.cpp +++ b/src/ripple/core/impl/LoadEvent.cpp @@ -60,7 +60,7 @@ LoadEvent::runTime() const return timeRunning_; } -void LoadEvent::reName (std::string const& name) +void LoadEvent::setName (std::string const& name) { name_ = name; }