diff options
-rw-r--r-- | messageengine.h | 3 | ||||
-rw-r--r-- | messageenginefactory.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/messageengine.h b/messageengine.h index 4639c97..12aa5e9 100644 --- a/messageengine.h +++ b/messageengine.h @@ -29,7 +29,6 @@ class MessageEngine : public QObject { Q_OBJECT public: - explicit MessageEngine(const QUrl &url); bool sendMessage(std::unique_ptr<Message> message); Q_SIGNALS: @@ -48,6 +47,8 @@ class MessageEngine : public QObject QMap<qint32, QByteArray> m_calls; QUrl m_url; std::atomic<unsigned int> m_callid; + + explicit MessageEngine(const QUrl &url); friend class MessageEngineFactory; }; diff --git a/messageenginefactory.cpp b/messageenginefactory.cpp index db5c70b..04fb741 100644 --- a/messageenginefactory.cpp +++ b/messageenginefactory.cpp @@ -31,7 +31,7 @@ std::shared_ptr<MessageEngine> MessageEngineFactory::getMessageEngine(const QUrl auto urlstr = url.toString(); auto pme = lut[urlstr]; if (!pme){ - pme = std::make_shared<MessageEngine>(url); + pme = std::shared_ptr<MessageEngine>{new MessageEngine(url)}; lut[urlstr] = pme; } |