Update gifFrameLength name as suggested by clang-tidy (#3947)

This commit is contained in:
Felanbird 2022-09-04 13:25:34 -04:00 committed by GitHub
parent 7a4eda0e30
commit 92301e7d72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -100,7 +100,7 @@ namespace detail {
void Frames::advance()
{
this->durationOffset_ += gifFrameLength;
this->durationOffset_ += GIF_FRAME_LENGTH;
this->processOffset();
}

View file

@ -8,7 +8,7 @@ namespace chatterino {
void GIFTimer::initialize()
{
this->timer.setInterval(gifFrameLength);
this->timer.setInterval(GIF_FRAME_LENGTH);
this->timer.setTimerType(Qt::PreciseTimer);
getSettings()->animateEmotes.connect([this](bool enabled, auto) {
@ -23,7 +23,7 @@ void GIFTimer::initialize()
qApp->activeWindow() == nullptr)
return;
this->position_ += gifFrameLength;
this->position_ += GIF_FRAME_LENGTH;
this->signal.invoke();
getApp()->windows->repaintGifEmotes();
});

View file

@ -5,7 +5,7 @@
namespace chatterino {
constexpr long unsigned gifFrameLength = 20;
constexpr long unsigned GIF_FRAME_LENGTH = 20;
class GIFTimer
{