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
# include <irccommand.h>
# include <ircconnection.h>

View file

@ -112,8 +112,6 @@ namespace {
ChannelView::ChannelView(BaseWidget *parent)
: BaseWidget(parent)
, sourceChannel_(nullptr)
, underlyingChannel_(nullptr)
, scrollBar_(new Scrollbar(this))
{
this->setMouseTracking(true);

View file

@ -182,9 +182,9 @@ private:
LimitedQueueSnapshot<MessageLayoutPtr> snapshot_;
ChannelPtr channel_;
ChannelPtr underlyingChannel_;
ChannelPtr sourceChannel_;
ChannelPtr channel_ = nullptr;
ChannelPtr underlyingChannel_ = nullptr;
ChannelPtr sourceChannel_ = nullptr;
Scrollbar *scrollBar_;
EffectLabel *goToBottom_;