From 4e86c6a9a168821138c64a4ef150ad27e68c721a Mon Sep 17 00:00:00 2001 From: Tim Ebbeke Date: Tue, 26 Nov 2024 23:17:29 +0100 Subject: [PATCH] Tidy throttle. --- nui/include/nui/frontend/api/throttle.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nui/include/nui/frontend/api/throttle.hpp b/nui/include/nui/frontend/api/throttle.hpp index 3a2647d..9109808 100644 --- a/nui/include/nui/frontend/api/throttle.hpp +++ b/nui/include/nui/frontend/api/throttle.hpp @@ -13,9 +13,9 @@ namespace Nui ThrottledFunction(int32_t id, bool calledWhenReady, std::function func); ~ThrottledFunction(); ThrottledFunction(ThrottledFunction const&) = delete; - ThrottledFunction(ThrottledFunction&& other); + ThrottledFunction(ThrottledFunction&& other) noexcept; ThrottledFunction& operator=(ThrottledFunction const&) = delete; - ThrottledFunction& operator=(ThrottledFunction&& other); + ThrottledFunction& operator=(ThrottledFunction&& other) noexcept; /// Calls the function if it is valid. void operator()(); @@ -24,7 +24,7 @@ namespace Nui bool valid() const; private: - int32_t id_{-1}; + int32_t id_; bool calledWhenReady_; std::function func_{}; };