summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2019-06-11 20:23:16 +0200
committerRaquel Medina <raquel.medina@konsulko.com>2019-06-11 20:26:26 +0200
commit9d896c9c8f5622370362091f38bbc5d1f4189901 (patch)
tree1190547c1dc0c581117c56e6d25582d4a7954278
parentb2ecc0352f09343297e2354fecb9c2c9b54d1126 (diff)
network: fix warning on return path
There's no return value if the WifiAdapter is not found and thus the compiler warning. Bug-AGL: SPEC-2293 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I59a2e5e7a86c845669b673753ec97dbaee0fc5ab
-rw-r--r--network/network.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/network/network.cpp b/network/network.cpp
index 48fbaaa..9574837 100644
--- a/network/network.cpp
+++ b/network/network.cpp
@@ -116,6 +116,7 @@ AdapterIf* Network::findAdapter(QString type)
for (iter = m_adapters.begin(); iter != m_adapters.end(); ++iter)
if ((*iter)->getType() == type)
return (*iter);
+ return nullptr;
}
void Network::updateServiceProperties(QJsonObject data)