diff --git a/src/PrecompiledHeader.hpp b/src/PrecompiledHeader.hpp index cec2e2ff..613fa4e9 100644 --- a/src/PrecompiledHeader.hpp +++ b/src/PrecompiledHeader.hpp @@ -1,5 +1,3 @@ -#pragma once - #ifdef __cplusplus # include # include diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index 9eaf48b5..d65a6c72 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -112,8 +112,6 @@ namespace { ChannelView::ChannelView(BaseWidget *parent) : BaseWidget(parent) - , sourceChannel_(nullptr) - , underlyingChannel_(nullptr) , scrollBar_(new Scrollbar(this)) { this->setMouseTracking(true); diff --git a/src/widgets/helper/ChannelView.hpp b/src/widgets/helper/ChannelView.hpp index 2585f4fa..5b766167 100644 --- a/src/widgets/helper/ChannelView.hpp +++ b/src/widgets/helper/ChannelView.hpp @@ -182,9 +182,9 @@ private: LimitedQueueSnapshot snapshot_; - ChannelPtr channel_; - ChannelPtr underlyingChannel_; - ChannelPtr sourceChannel_; + ChannelPtr channel_ = nullptr; + ChannelPtr underlyingChannel_ = nullptr; + ChannelPtr sourceChannel_ = nullptr; Scrollbar *scrollBar_; EffectLabel *goToBottom_;