From a9f2199a87ffb60c50e3037d4de731ac3e49e872 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 26 Sep 2017 12:23:39 +0200 Subject: [PATCH] core: improve variable name --- core/timeout_handler.cpp | 4 ++-- core/timeout_handler.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/timeout_handler.cpp b/core/timeout_handler.cpp index 07cdb9d8d1..d36a7c221a 100644 --- a/core/timeout_handler.cpp +++ b/core/timeout_handler.cpp @@ -39,13 +39,13 @@ void TimeoutHandler::refresh(const void *cookie) } } -void TimeoutHandler::update(double new_duration_s, const void *cookie) +void TimeoutHandler::update(double updated_duration_s, const void *cookie) { std::lock_guard lock(_timeouts_mutex); auto it = _timeouts.find((void *)(cookie)); if (it != _timeouts.end()) { - it->second->duration_s = new_duration_s; + it->second->duration_s = updated_duration_s; } } diff --git a/core/timeout_handler.h b/core/timeout_handler.h index 312a6a2aea..d8ba478ec6 100644 --- a/core/timeout_handler.h +++ b/core/timeout_handler.h @@ -22,7 +22,7 @@ class TimeoutHandler void add(std::function callback, double duration_s, void **cookie); void refresh(const void *cookie); - void update(double new_duration_s, const void *cookie); + void update(double updated_duration_s, const void *cookie); void remove(const void *cookie); void run_once();