From 1655bced3931d269654734db261412330f91a242 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Wed, 28 Dec 2022 19:46:37 +0100 Subject: ClientExtension: Save d-ptr allocation The d-ptr only contained one other pointer which can be stored directly. If we should need another attribute, we can just re-add the d-ptr since it has the same size as the current QXmppClient ptr. Closes #522. --- src/client/QXmppClientExtension.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client/QXmppClientExtension.h') diff --git a/src/client/QXmppClientExtension.h b/src/client/QXmppClientExtension.h index 62fdd3ac..d05d6448 100644 --- a/src/client/QXmppClientExtension.h +++ b/src/client/QXmppClientExtension.h @@ -51,7 +51,8 @@ protected: bool injectMessage(QXmppMessage &&message); private: - const std::unique_ptr d; + // m_client can be replaced with a d-ptr if needed (same size) + QXmppClient *m_client; friend class QXmppClient; }; -- cgit v1.2.3