From 92301e7d725ef751b24227cba930e1d4b6d96c02 Mon Sep 17 00:00:00 2001 From: Felanbird <41973452+Felanbird@users.noreply.github.com> Date: Sun, 4 Sep 2022 13:25:34 -0400 Subject: [PATCH] Update gifFrameLength name as suggested by clang-tidy (#3947) --- src/messages/Image.cpp | 2 +- src/singletons/helper/GifTimer.cpp | 4 ++-- src/singletons/helper/GifTimer.hpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/messages/Image.cpp b/src/messages/Image.cpp index 95abb3bc..e189d54b 100644 --- a/src/messages/Image.cpp +++ b/src/messages/Image.cpp @@ -100,7 +100,7 @@ namespace detail { void Frames::advance() { - this->durationOffset_ += gifFrameLength; + this->durationOffset_ += GIF_FRAME_LENGTH; this->processOffset(); } diff --git a/src/singletons/helper/GifTimer.cpp b/src/singletons/helper/GifTimer.cpp index c1ad6b73..6f567ea7 100644 --- a/src/singletons/helper/GifTimer.cpp +++ b/src/singletons/helper/GifTimer.cpp @@ -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(); }); diff --git a/src/singletons/helper/GifTimer.hpp b/src/singletons/helper/GifTimer.hpp index d20d933b..d24f2d11 100644 --- a/src/singletons/helper/GifTimer.hpp +++ b/src/singletons/helper/GifTimer.hpp @@ -5,7 +5,7 @@ namespace chatterino { -constexpr long unsigned gifFrameLength = 20; +constexpr long unsigned GIF_FRAME_LENGTH = 20; class GIFTimer {