删除多余return, 去掉return后多余空格

This commit is contained in:
chenxuechao 2022-07-05 10:23:21 +08:00
parent 248a055059
commit 6591af9192
2 changed files with 6 additions and 7 deletions

View File

@ -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)

View File

@ -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(";");