mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Correct_after_cpp_check
style and typos
This commit is contained in:
parent
6fff75bb34
commit
0791c64efd
|
@ -112,14 +112,14 @@ void Core::onAvMediaChange(void* toxav, int32_t callId, void* core)
|
|||
Camera::getInstance()->subscribe();
|
||||
calls[callId].videoEnabled = true;
|
||||
calls[callId].sendVideoTimer->start();
|
||||
emit ((Core*)core)->avMediaChange(friendId, callId, true);
|
||||
emit static_cast<Core*>(core)->avMediaChange(friendId, callId, true);
|
||||
}
|
||||
else // Audio call
|
||||
{
|
||||
calls[callId].videoEnabled = false;
|
||||
calls[callId].sendVideoTimer->stop();
|
||||
Camera::getInstance()->unsubscribe();
|
||||
emit ((Core*)core)->avMediaChange(friendId, callId, false);
|
||||
emit static_cast<Core*>(core)->avMediaChange(friendId, callId, false);
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
|
@ -1459,7 +1459,7 @@ void Widget::hideFriends(QString searchString, Status status, bool hideAll)
|
|||
FriendWidget* friendWidget = static_cast<FriendWidget*>(friends->itemAt(index)->widget());
|
||||
QString friendName = friendWidget->getName();
|
||||
|
||||
if (!friendName.contains(searchString, Qt::CaseInsensitive) | hideAll)
|
||||
if (!friendName.contains(searchString, Qt::CaseInsensitive) || hideAll)
|
||||
friendWidget->setVisible(false);
|
||||
else
|
||||
friendWidget->setVisible(true);
|
||||
|
@ -1476,7 +1476,7 @@ void Widget::hideGroups(QString searchString, bool hideAll)
|
|||
GroupWidget* groupWidget = static_cast<GroupWidget*>(groups->itemAt(index)->widget());
|
||||
QString groupName = groupWidget->getName();
|
||||
|
||||
if (!groupName.contains(searchString, Qt::CaseInsensitive) | hideAll)
|
||||
if (!groupName.contains(searchString, Qt::CaseInsensitive) || hideAll)
|
||||
groupWidget->setVisible(false);
|
||||
else
|
||||
groupWidget->setVisible(true);
|
||||
|
|
Loading…
Reference in New Issue
Block a user