Skip to content

Commit

Permalink
Tidy throttle source.
Browse files Browse the repository at this point in the history
  • Loading branch information
5cript committed Nov 26, 2024
1 parent 2455251 commit 60c0eea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nui/src/nui/frontend/api/throttle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ namespace Nui
}
}
//---------------------------------------------------------------------------------------------------------------------
ThrottledFunction::ThrottledFunction(ThrottledFunction&& other)
ThrottledFunction::ThrottledFunction(ThrottledFunction&& other) noexcept
: id_(other.id_)
, calledWhenReady_{other.calledWhenReady_}
, func_(std::move(other.func_))
{
other.id_ = -1;
}
//---------------------------------------------------------------------------------------------------------------------
ThrottledFunction& ThrottledFunction::operator=(ThrottledFunction&& other)
ThrottledFunction& ThrottledFunction::operator=(ThrottledFunction&& other) noexcept
{
id_ = other.id_;
func_ = std::move(other.func_);
Expand Down

0 comments on commit 60c0eea

Please sign in to comment.