Fix various warnings (#2147)

This commit is contained in:
pajlada
2020-11-01 15:23:58 +01:00
committed by GitHub
parent 2eb01af5e7
commit 9cdddfc65d
3 changed files with 3 additions and 7 deletions
-2
View File
@@ -1,5 +1,3 @@
#pragma once
#ifdef __cplusplus #ifdef __cplusplus
# include <irccommand.h> # include <irccommand.h>
# include <ircconnection.h> # include <ircconnection.h>
-2
View File
@@ -112,8 +112,6 @@ namespace {
ChannelView::ChannelView(BaseWidget *parent) ChannelView::ChannelView(BaseWidget *parent)
: BaseWidget(parent) : BaseWidget(parent)
, sourceChannel_(nullptr)
, underlyingChannel_(nullptr)
, scrollBar_(new Scrollbar(this)) , scrollBar_(new Scrollbar(this))
{ {
this->setMouseTracking(true); this->setMouseTracking(true);
+3 -3
View File
@@ -182,9 +182,9 @@ private:
LimitedQueueSnapshot<MessageLayoutPtr> snapshot_; LimitedQueueSnapshot<MessageLayoutPtr> snapshot_;
ChannelPtr channel_; ChannelPtr channel_ = nullptr;
ChannelPtr underlyingChannel_; ChannelPtr underlyingChannel_ = nullptr;
ChannelPtr sourceChannel_; ChannelPtr sourceChannel_ = nullptr;
Scrollbar *scrollBar_; Scrollbar *scrollBar_;
EffectLabel *goToBottom_; EffectLabel *goToBottom_;