1
0
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:
PKEv 2015-05-30 23:44:56 +03:00
parent 6fff75bb34
commit 0791c64efd
2 changed files with 4 additions and 4 deletions

View File

@ -112,14 +112,14 @@ void Core::onAvMediaChange(void* toxav, int32_t callId, void* core)
Camera::getInstance()->subscribe(); Camera::getInstance()->subscribe();
calls[callId].videoEnabled = true; calls[callId].videoEnabled = true;
calls[callId].sendVideoTimer->start(); calls[callId].sendVideoTimer->start();
emit ((Core*)core)->avMediaChange(friendId, callId, true); emit static_cast<Core*>(core)->avMediaChange(friendId, callId, true);
} }
else // Audio call else // Audio call
{ {
calls[callId].videoEnabled = false; calls[callId].videoEnabled = false;
calls[callId].sendVideoTimer->stop(); calls[callId].sendVideoTimer->stop();
Camera::getInstance()->unsubscribe(); Camera::getInstance()->unsubscribe();
emit ((Core*)core)->avMediaChange(friendId, callId, false); emit static_cast<Core*>(core)->avMediaChange(friendId, callId, false);
} }
return; return;

View File

@ -1459,7 +1459,7 @@ void Widget::hideFriends(QString searchString, Status status, bool hideAll)
FriendWidget* friendWidget = static_cast<FriendWidget*>(friends->itemAt(index)->widget()); FriendWidget* friendWidget = static_cast<FriendWidget*>(friends->itemAt(index)->widget());
QString friendName = friendWidget->getName(); QString friendName = friendWidget->getName();
if (!friendName.contains(searchString, Qt::CaseInsensitive) | hideAll) if (!friendName.contains(searchString, Qt::CaseInsensitive) || hideAll)
friendWidget->setVisible(false); friendWidget->setVisible(false);
else else
friendWidget->setVisible(true); friendWidget->setVisible(true);
@ -1476,7 +1476,7 @@ void Widget::hideGroups(QString searchString, bool hideAll)
GroupWidget* groupWidget = static_cast<GroupWidget*>(groups->itemAt(index)->widget()); GroupWidget* groupWidget = static_cast<GroupWidget*>(groups->itemAt(index)->widget());
QString groupName = groupWidget->getName(); QString groupName = groupWidget->getName();
if (!groupName.contains(searchString, Qt::CaseInsensitive) | hideAll) if (!groupName.contains(searchString, Qt::CaseInsensitive) || hideAll)
groupWidget->setVisible(false); groupWidget->setVisible(false);
else else
groupWidget->setVisible(true); groupWidget->setVisible(true);