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

Commit

Permalink
fix(build): Remove unused vars, add default case for switch
Browse files Browse the repository at this point in the history
Fix #5006
  • Loading branch information
anthonybilinski committed Mar 16, 2018
1 parent 1afed5f commit bc18990
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/core/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down
4 changes: 0 additions & 4 deletions src/widget/friendwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

Expand Down

0 comments on commit bc18990

Please sign in to comment.