Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix: silence various warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sudden6 committed Mar 20, 2017
1 parent f07daaf commit f0cec44
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/chatlog/chatlinecontent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ QString ChatLineContent::getSelectedText() const

void ChatLineContent::fontChanged(const QFont& font)
{
Q_UNUSED(font);
}

qreal ChatLineContent::getAscent() const
Expand Down
6 changes: 3 additions & 3 deletions src/widget/form/groupinviteform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/widget/form/groupinvitewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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); });
Expand Down
1 change: 1 addition & 0 deletions src/widget/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0cec44

Please sign in to comment.