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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 7 deletions

View file

@ -1,5 +1,3 @@
#pragma once
#ifdef __cplusplus #ifdef __cplusplus
# include <irccommand.h> # include <irccommand.h>
# include <ircconnection.h> # include <ircconnection.h>

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);

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_;