uisupport: Provide helpers for dealing with widget changes
[quassel.git] / src / core / corenetworkconfig.cpp
index c654d52..faab93e 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2013 by the Quassel Project                        *
+ *   Copyright (C) 2005-2018 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -22,7 +22,6 @@
 #include "coresession.h"
 #include "corenetworkconfig.h"
 
-INIT_SYNCABLE_OBJECT(CoreNetworkConfig)
 CoreNetworkConfig::CoreNetworkConfig(const QString &objectName, CoreSession *session)
     : NetworkConfig(objectName, session)
 {
@@ -39,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;