summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kacej <[email protected]>2018-01-24 22:55:52 +0100
committerMartin Kacej <[email protected]>2018-01-24 22:55:52 +0100
commitef98fc52f99376e91db5ab2a392430abb21d43e8 (patch)
tree11dd4e327d9f28189c7fb7426f42c19ec2e2b100
parentc701d3714107f5f235b4c1bfea71c1f1becb826c (diff)
small refactor
-rw-r--r--libs/handler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/handler.cpp b/libs/handler.cpp
index 269c2f0..f935414 100644
--- a/libs/handler.cpp
+++ b/libs/handler.cpp
@@ -512,7 +512,7 @@ void Handler::replyFinished(QDBusPendingCallWatcher * watcher)
}
QVariantMap Handler::getConnectionSettings(const QString &connection, const QString &type)
{
- if (type.length() == 0)
+ if (type.isEmpty())
return QVariantMap();
NetworkManager::Connection::Ptr con = NetworkManager::findConnection(connection);
if (!con)