modernize: Use auto where the type is clear from context
[quassel.git] / src / core / corenetworkconfig.cpp
index 3ae0ae0..faab93e 100644 (file)
@@ -38,7 +38,7 @@ CoreNetworkConfig::CoreNetworkConfig(const QString &objectName, CoreSession *ses
 
 void CoreNetworkConfig::save()
 {
-    CoreSession *session = qobject_cast<CoreSession *>(parent());
+    auto *session = qobject_cast<CoreSession *>(parent());
     if (!session) {
         qWarning() << Q_FUNC_INFO << "No CoreSession set, cannot save network configuration!";
         return;