1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(build): Remove unused vars, add default case for switch

Fix #5006
This commit is contained in:
Anthony Bilinski 2018-03-15 15:23:46 -07:00
parent 1afed5f72e
commit bc18990fd2
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
2 changed files with 4 additions and 4 deletions

View File

@ -713,6 +713,10 @@ bool parseConferenceSendMessageError(TOX_ERR_CONFERENCE_SEND_MESSAGE error)
case TOX_ERR_CONFERENCE_SEND_MESSAGE_TOO_LONG:
qCritical() << "Message too long";
return false;
default:
qCritical() << "Unknown TOX_ERR_CONFERENCE_SEND_MESSAGE error";
return false;
}
}

View File

@ -139,10 +139,6 @@ void FriendWidget::onContextMenuCalled(QContextMenuEvent* event)
const auto& s = Settings::getInstance();
const auto circleId = s.getFriendCircleID(frnd->getPublicKey());
auto circleWidget = CircleWidget::getFromID(circleId);
auto w = circleWidget ? circleWidget : static_cast<QWidget*>(this);
auto friendList = qobject_cast<FriendListWidget*>(w->parentWidget());
auto circleMenu = menu.addMenu(tr("Move to circle...",
"Menu to move a friend into a different circle"));