diff --git a/src/core/plugins/plugincontainer.h b/src/core/plugins/plugincontainer.h index 36eea55..f2d7fcd 100644 --- a/src/core/plugins/plugincontainer.h +++ b/src/core/plugins/plugincontainer.h @@ -51,6 +51,8 @@ public: static const QList &types(); private: + static QHash > s_pluginCache; + void static updatePluginCache(); static const QDir &pluginDir(); static inline const QString pluginExtention() @@ -63,9 +65,6 @@ private: return QLatin1String("dylib"); #endif } - - static QHash > s_pluginCache; - static inline QSettings &cache() { static QSettings *_cache = NULL; diff --git a/src/plugins/frontends/snarlnetwork/snarlnetwork.cpp b/src/plugins/frontends/snarlnetwork/snarlnetwork.cpp index a96ea3e..5679e02 100644 --- a/src/plugins/frontends/snarlnetwork/snarlnetwork.cpp +++ b/src/plugins/frontends/snarlnetwork/snarlnetwork.cpp @@ -128,7 +128,7 @@ void SnarlNetworkFrontend::handleMessages() void SnarlNetworkFrontend::callback(Notification &sn, const QString msg) { - QTcpSocket *client = (QTcpSocket*)qvariant_cast(sn.hints().privateValue(this, "clientSocket")); + QTcpSocket *client = qobject_cast(sn.hints().privateValue(this, "clientSocket").value()); if(client && !msg.isEmpty()) { write(client, QString("%1%2\r\n").arg(msg, QString::number(sn.id())));