mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
refs #472 Removed static_cast<int> for enums in blackcore, no longer needed.
This commit is contained in:
@@ -91,12 +91,10 @@ namespace BlackGui
|
||||
this->tabBar()->setTabText(ic, c);
|
||||
}
|
||||
|
||||
void CUserComponent::ps_connectionStatusChanged(uint from, uint to)
|
||||
void CUserComponent::ps_connectionStatusChanged(INetwork::ConnectionStatus from, INetwork::ConnectionStatus to)
|
||||
{
|
||||
INetwork::ConnectionStatus fromStatus = static_cast<INetwork::ConnectionStatus>(from);
|
||||
INetwork::ConnectionStatus toStatus = static_cast<INetwork::ConnectionStatus>(to);
|
||||
Q_UNUSED(fromStatus);
|
||||
if (INetwork::isDisconnectedStatus(toStatus))
|
||||
Q_UNUSED(from);
|
||||
if (INetwork::isDisconnectedStatus(to))
|
||||
{
|
||||
this->ui->tvp_AllUsers->clear();
|
||||
this->ui->tvp_Clients->clear();
|
||||
|
||||
Reference in New Issue
Block a user