remove underscore-prefix from some class members

This commit is contained in:
Rasmus Karlsson 2017-12-17 13:31:08 +01:00
parent bb608c83d1
commit fe352b5da9
2 changed files with 12 additions and 14 deletions

View file

@ -522,27 +522,27 @@ EmoteData EmoteManager::getCheerImage(long long amount, bool animated)
boost::signals2::signal<void()> &EmoteManager::getGifUpdateSignal() boost::signals2::signal<void()> &EmoteManager::getGifUpdateSignal()
{ {
if (!_gifUpdateTimerInitiated) { if (!this->gifUpdateTimerInitiated) {
_gifUpdateTimerInitiated = true; this->gifUpdateTimerInitiated = true;
_gifUpdateTimer.setInterval(30); this->gifUpdateTimer.setInterval(30);
_gifUpdateTimer.start(); this->gifUpdateTimer.start();
SettingsManager::getInstance().enableGifAnimations.connect([this](bool enabled, auto) { SettingsManager::getInstance().enableGifAnimations.connect([this](bool enabled, auto) {
if (enabled) { if (enabled) {
_gifUpdateTimer.start(); this->gifUpdateTimer.start();
} else { } else {
_gifUpdateTimer.stop(); this->gifUpdateTimer.stop();
} }
}); });
QObject::connect(&_gifUpdateTimer, &QTimer::timeout, [this] { QObject::connect(&this->gifUpdateTimer, &QTimer::timeout, [this] {
_gifUpdateTimerSignal(); this->gifUpdateTimerSignal();
WindowManager::instance->repaintGifEmotes(); WindowManager::instance->repaintGifEmotes();
}); });
} }
return _gifUpdateTimerSignal; return this->gifUpdateTimerSignal;
} }
} // namespace chatterino } // namespace chatterino

View file

@ -157,11 +157,9 @@ private:
/// Chatterino emotes /// Chatterino emotes
EmoteMap _chatterinoEmotes; EmoteMap _chatterinoEmotes;
boost::signals2::signal<void()> _gifUpdateTimerSignal; boost::signals2::signal<void()> gifUpdateTimerSignal;
QTimer _gifUpdateTimer; QTimer gifUpdateTimer;
bool _gifUpdateTimerInitiated = false; bool gifUpdateTimerInitiated = false;
int _generation = 0;
// methods // methods
static QString getTwitchEmoteLink(long id, qreal &scale); static QString getTwitchEmoteLink(long id, qreal &scale);