Clean up warnings
This commit is contained in:
+2
-2
@@ -21,9 +21,9 @@ using namespace chatterino::messages;
|
||||
namespace chatterino {
|
||||
|
||||
Channel::Channel(const QString &_name, Type _type)
|
||||
: type(_type)
|
||||
, name(_name)
|
||||
: name(_name)
|
||||
, completionModel(this->name)
|
||||
, type(_type)
|
||||
{
|
||||
this->clearCompletionModelTimer = new QTimer;
|
||||
QObject::connect(this->clearCompletionModelTimer, &QTimer::timeout, [this]() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#pragma
|
||||
#pragma once
|
||||
|
||||
#include "controllers/accounts/account.hpp"
|
||||
#include "util/signalvectormodel.hpp"
|
||||
|
||||
@@ -682,8 +682,6 @@ void PubSub::handleListenResponse(const rapidjson::Document &msg)
|
||||
if (rj::getSafe(msg, "error", error)) {
|
||||
std::string nonce;
|
||||
rj::getSafe(msg, "nonce", nonce);
|
||||
const auto &xd = sentMessages;
|
||||
const auto &payload = sentMessages[nonce];
|
||||
|
||||
if (error.empty()) {
|
||||
debug::Log("Successfully listened to nonce {}", nonce);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <QString>;
|
||||
#include <QString>
|
||||
#include <pajlada/signals/signal.hpp>
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
@@ -16,9 +16,9 @@ namespace chatterino {
|
||||
namespace widgets {
|
||||
|
||||
AttachedWindow::AttachedWindow(void *_target, int _yOffset)
|
||||
: target(_target)
|
||||
: QWidget(nullptr, Qt::FramelessWindowHint | Qt::Window)
|
||||
, target(_target)
|
||||
, yOffset(_yOffset)
|
||||
, QWidget(nullptr, Qt::FramelessWindowHint | Qt::Window)
|
||||
{
|
||||
QLayout *layout = new QVBoxLayout(this);
|
||||
layout->setMargin(0);
|
||||
|
||||
@@ -233,7 +233,7 @@ bool SelectChannelDialog::EventFilter::eventFilter(QObject *watched, QEvent *eve
|
||||
return true;
|
||||
} else if (((event_key->key() == Qt::Key_Tab || event_key->key() == Qt::Key_Backtab) &&
|
||||
event_key->modifiers() == Qt::ShiftModifier) ||
|
||||
(event_key->key() == Qt::Key_Up) && event_key->modifiers() == Qt::NoModifier) {
|
||||
((event_key->key() == Qt::Key_Up) && event_key->modifiers() == Qt::NoModifier)) {
|
||||
if (widget == this->dialog->ui.twitch.channelName) {
|
||||
this->dialog->ui.twitch.watching->setFocus();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user