diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-05-08 15:42:11 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-05-08 15:42:11 -0400 |
commit | fe105060bb3fd75263c989e0fe6060280918d2bf (patch) | |
tree | 01591783e7310d60d00321e3fa48fe11858be541 /indra/llui/llflashtimer.cpp | |
parent | 51e86a0eff4e919075b32c498305add577450111 (diff) | |
parent | dc0b3aed4782e4e4835fd6b9d59d1d70b78be4a7 (diff) |
Merge branch 'nat/cleanup-timers' into lua-timers.
Diffstat (limited to 'indra/llui/llflashtimer.cpp')
-rw-r--r-- | indra/llui/llflashtimer.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/indra/llui/llflashtimer.cpp b/indra/llui/llflashtimer.cpp index 39793316f4..4a5b220008 100644 --- a/indra/llui/llflashtimer.cpp +++ b/indra/llui/llflashtimer.cpp @@ -31,11 +31,11 @@ LLFlashTimer::LLFlashTimer(callback_t cb, S32 count, F32 period) : LLEventTimer(period), mCallback(cb), mCurrentTickCount(0), - mIsFlashingInProgress(false), - mIsCurrentlyHighlighted(false), - mUnset(false) + mIsFlashingInProgress(false), + mIsCurrentlyHighlighted(false), + mUnset(false) { - mEventTimer.stop(); + stop(); // By default use settings from settings.xml to be able change them via Debug settings. See EXT-5973. // Due to Timer is implemented as derived class from EventTimer it is impossible to change period @@ -53,7 +53,7 @@ void LLFlashTimer::unset() mCallback = NULL; } -BOOL LLFlashTimer::tick() +bool LLFlashTimer::tick() { mIsCurrentlyHighlighted = !mIsCurrentlyHighlighted; @@ -74,12 +74,12 @@ void LLFlashTimer::startFlashing() { mIsFlashingInProgress = true; mIsCurrentlyHighlighted = true; - mEventTimer.start(); + start(); } void LLFlashTimer::stopFlashing() { - mEventTimer.stop(); + stop(); mIsFlashingInProgress = false; mIsCurrentlyHighlighted = false; mCurrentTickCount = 0; |