From 9cdddfc65dd5e451b5752394fe018ef14d2cc426 Mon Sep 17 00:00:00 2001 From: pajlada Date: Sun, 1 Nov 2020 15:23:58 +0100 Subject: [PATCH] Fix various warnings (#2147) --- src/PrecompiledHeader.hpp | 2 -- src/widgets/helper/ChannelView.cpp | 2 -- src/widgets/helper/ChannelView.hpp | 6 +++--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/PrecompiledHeader.hpp b/src/PrecompiledHeader.hpp index cec2e2ff5..613fa4e95 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 9eaf48b53..d65a6c725 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 2585f4fab..5b7661678 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_;