From 9d896c9c8f5622370362091f38bbc5d1f4189901 Mon Sep 17 00:00:00 2001 From: Raquel Medina Date: Tue, 11 Jun 2019 20:23:16 +0200 Subject: 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 Change-Id: I59a2e5e7a86c845669b673753ec97dbaee0fc5ab --- network/network.cpp | 1 + 1 file changed, 1 insertion(+) 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) -- cgit 1.2.3-korg