modernize: Pass arguments by value and move in constructors
[quassel.git] / src / core / core.cpp
index e1ea083..6e77294 100644 (file)
@@ -70,6 +70,8 @@ public:
 Core::Core()
     : Singleton<Core>{this}
 {
+    Q_INIT_RESOURCE(sql);
+
     // Parent all QObject-derived attributes, so when the Core instance gets moved into another
     // thread, they get moved with it
     _server.setParent(this);
@@ -781,7 +783,7 @@ void Core::setupClientSession(RemotePeer *peer, UserId uid)
     Q_ASSERT(handler);
 
     // From now on everything is handled by the client session
-    disconnect(handler, 0, this, 0);
+    disconnect(handler, nullptr, this, nullptr);
     _connectingClients.remove(handler);
     handler->deleteLater();