删除多余return, 去掉return后多余空格
This commit is contained in:
parent
248a055059
commit
6591af9192
|
@ -65,7 +65,7 @@ void BlacklistPage::getBlacklistDevice(QMap<QString, QString> &blacklistMap)
|
|||
{
|
||||
if (m_settingPathInterface == nullptr || !m_settingPathInterface->isValid()) {
|
||||
qDebug() << "dbus interface m_settingPathInterface is invaild";
|
||||
return ;
|
||||
return;
|
||||
}
|
||||
|
||||
QDBusMessage reply = m_settingPathInterface->call("Getblacklist");
|
||||
|
@ -78,7 +78,7 @@ void BlacklistPage::getBlacklistDevice(QMap<QString, QString> &blacklistMap)
|
|||
|| reply.arguments().at(0).toString() == ""
|
||||
|| reply.arguments().at(1).toString() == "") {
|
||||
qDebug() << "Dbus interface call Getblacklist return is empty!";
|
||||
return ;
|
||||
return;
|
||||
}
|
||||
|
||||
QStringList macList = reply.arguments().at(0).toString().split(";");
|
||||
|
@ -108,18 +108,17 @@ void BlacklistPage::onsetStaIntoBlacklist(QString staMac)
|
|||
{
|
||||
if (m_settingPathInterface == nullptr || !m_settingPathInterface->isValid()) {
|
||||
qDebug() << "dbus interface m_settingPathInterface is invaild";
|
||||
return ;
|
||||
return;
|
||||
}
|
||||
|
||||
QDBusMessage reply = m_settingPathInterface->call("Addblacklist", staMac);
|
||||
if(reply.type() == QDBusMessage::ErrorMessage)
|
||||
{
|
||||
qWarning() << "[mobilehotspot]Getstainfo error:" << reply.errorMessage();
|
||||
return ;
|
||||
return;
|
||||
}
|
||||
|
||||
refreshBlacklist();
|
||||
return ;
|
||||
}
|
||||
|
||||
void BlacklistPage::addBlacklistDevFrame(QString staMac, QString staName)
|
||||
|
|
|
@ -67,7 +67,7 @@ void ConnectdevPage::getConnectStaDevice(QMap<QString, QString> &staMap)
|
|||
staMap.clear();
|
||||
if (m_avtivePathInterface == nullptr || !m_avtivePathInterface->isValid()) {
|
||||
qDebug() << "dbus interface m_avtivePathInterface is invaild";
|
||||
return ;
|
||||
return;
|
||||
}
|
||||
|
||||
QDBusMessage reply = m_avtivePathInterface->call("Getstainfo");
|
||||
|
@ -81,7 +81,7 @@ void ConnectdevPage::getConnectStaDevice(QMap<QString, QString> &staMap)
|
|||
|| reply.arguments().at(0).toString() == "[Invalid UTF-8]"
|
||||
|| reply.arguments().at(1).toString() == "") {
|
||||
qDebug() << "Dbus interface call Getstainfo return is empty!";
|
||||
return ;
|
||||
return;
|
||||
}
|
||||
|
||||
QStringList macList = reply.arguments().at(0).toString().split(";");
|
||||
|
|
Loading…
Reference in New Issue