mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Clean up warnings
This commit is contained in:
parent
d9c0d37bd2
commit
5efc2c38d8
|
@ -374,6 +374,7 @@ win32-msvc* {
|
||||||
QMAKE_CXXFLAGS_WARN_ON += -Wno-switch
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-switch
|
||||||
QMAKE_CXXFLAGS_WARN_ON += -Wno-deprecated-declarations
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-deprecated-declarations
|
||||||
QMAKE_CXXFLAGS_WARN_ON += -Wno-sign-compare
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-sign-compare
|
||||||
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-variable
|
||||||
|
|
||||||
# Disabling strict-aliasing warnings for now, although we probably want to re-enable this in the future
|
# Disabling strict-aliasing warnings for now, although we probably want to re-enable this in the future
|
||||||
QMAKE_CXXFLAGS_WARN_ON += -Wno-strict-aliasing
|
QMAKE_CXXFLAGS_WARN_ON += -Wno-strict-aliasing
|
||||||
|
|
|
@ -21,9 +21,9 @@ using namespace chatterino::messages;
|
||||||
namespace chatterino {
|
namespace chatterino {
|
||||||
|
|
||||||
Channel::Channel(const QString &_name, Type _type)
|
Channel::Channel(const QString &_name, Type _type)
|
||||||
: type(_type)
|
: name(_name)
|
||||||
, name(_name)
|
|
||||||
, completionModel(this->name)
|
, completionModel(this->name)
|
||||||
|
, type(_type)
|
||||||
{
|
{
|
||||||
this->clearCompletionModelTimer = new QTimer;
|
this->clearCompletionModelTimer = new QTimer;
|
||||||
QObject::connect(this->clearCompletionModelTimer, &QTimer::timeout, [this]() {
|
QObject::connect(this->clearCompletionModelTimer, &QTimer::timeout, [this]() {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#pragma
|
#pragma once
|
||||||
|
|
||||||
#include "controllers/accounts/account.hpp"
|
#include "controllers/accounts/account.hpp"
|
||||||
#include "util/signalvectormodel.hpp"
|
#include "util/signalvectormodel.hpp"
|
||||||
|
|
|
@ -682,8 +682,6 @@ void PubSub::handleListenResponse(const rapidjson::Document &msg)
|
||||||
if (rj::getSafe(msg, "error", error)) {
|
if (rj::getSafe(msg, "error", error)) {
|
||||||
std::string nonce;
|
std::string nonce;
|
||||||
rj::getSafe(msg, "nonce", nonce);
|
rj::getSafe(msg, "nonce", nonce);
|
||||||
const auto &xd = sentMessages;
|
|
||||||
const auto &payload = sentMessages[nonce];
|
|
||||||
|
|
||||||
if (error.empty()) {
|
if (error.empty()) {
|
||||||
debug::Log("Successfully listened to nonce {}", nonce);
|
debug::Log("Successfully listened to nonce {}", nonce);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <QString>;
|
#include <QString>
|
||||||
#include <pajlada/signals/signal.hpp>
|
#include <pajlada/signals/signal.hpp>
|
||||||
|
|
||||||
namespace chatterino {
|
namespace chatterino {
|
||||||
|
|
|
@ -16,9 +16,9 @@ namespace chatterino {
|
||||||
namespace widgets {
|
namespace widgets {
|
||||||
|
|
||||||
AttachedWindow::AttachedWindow(void *_target, int _yOffset)
|
AttachedWindow::AttachedWindow(void *_target, int _yOffset)
|
||||||
: target(_target)
|
: QWidget(nullptr, Qt::FramelessWindowHint | Qt::Window)
|
||||||
|
, target(_target)
|
||||||
, yOffset(_yOffset)
|
, yOffset(_yOffset)
|
||||||
, QWidget(nullptr, Qt::FramelessWindowHint | Qt::Window)
|
|
||||||
{
|
{
|
||||||
QLayout *layout = new QVBoxLayout(this);
|
QLayout *layout = new QVBoxLayout(this);
|
||||||
layout->setMargin(0);
|
layout->setMargin(0);
|
||||||
|
|
|
@ -233,7 +233,7 @@ bool SelectChannelDialog::EventFilter::eventFilter(QObject *watched, QEvent *eve
|
||||||
return true;
|
return true;
|
||||||
} else if (((event_key->key() == Qt::Key_Tab || event_key->key() == Qt::Key_Backtab) &&
|
} else if (((event_key->key() == Qt::Key_Tab || event_key->key() == Qt::Key_Backtab) &&
|
||||||
event_key->modifiers() == Qt::ShiftModifier) ||
|
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) {
|
if (widget == this->dialog->ui.twitch.channelName) {
|
||||||
this->dialog->ui.twitch.watching->setFocus();
|
this->dialog->ui.twitch.watching->setFocus();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue