diff --git a/src/chatlog/chatlinecontent.cpp b/src/chatlog/chatlinecontent.cpp index 938ebfb46..5b3b555e4 100644 --- a/src/chatlog/chatlinecontent.cpp +++ b/src/chatlog/chatlinecontent.cpp @@ -72,6 +72,7 @@ QString ChatLineContent::getSelectedText() const void ChatLineContent::fontChanged(const QFont& font) { + Q_UNUSED(font); } qreal ChatLineContent::getAscent() const diff --git a/src/widget/form/groupinviteform.cpp b/src/widget/form/groupinviteform.cpp index a3094c5db..9219dee9f 100644 --- a/src/widget/form/groupinviteform.cpp +++ b/src/widget/form/groupinviteform.cpp @@ -46,11 +46,11 @@ */ GroupInviteForm::GroupInviteForm() - : createButton(new QPushButton(this)) + : headWidget(new QWidget(this)) + , headLabel(new QLabel(this)) + , createButton(new QPushButton(this)) , inviteBox(new QGroupBox(this)) , scroll(new QScrollArea(this)) - , headLabel(new QLabel(this)) - , headWidget(new QWidget(this)) { QVBoxLayout* layout = new QVBoxLayout(this); connect(createButton, &QPushButton::clicked, diff --git a/src/widget/form/groupinvitewidget.cpp b/src/widget/form/groupinvitewidget.cpp index e46048105..3352ca862 100644 --- a/src/widget/form/groupinvitewidget.cpp +++ b/src/widget/form/groupinvitewidget.cpp @@ -37,10 +37,10 @@ GroupInviteWidget::GroupInviteWidget(QWidget* parent, const GroupInvite& invite) : QWidget(parent) - , widgetLayout(new QHBoxLayout(this)) , acceptButton(new QPushButton(this)) , rejectButton(new QPushButton(this)) , inviteMessageLabel(new CroppingLabel(this)) + , widgetLayout(new QHBoxLayout(this)) , inviteInfo(invite) { connect(acceptButton, &QPushButton::clicked, [=]() { emit accepted(inviteInfo); }); diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index 8652e6ce1..4b2a86a66 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -2063,6 +2063,7 @@ QString Widget::getStatusIconPath(Status status) case Status::Offline: return ":/img/status/dot_offline.svg"; } + assert(false); } //Preparing needed to set correct size of icons for GTK tray backend