diff options
| author | Linus Jahn <lnj@kaidan.im> | 2022-09-02 18:29:23 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2022-09-02 18:55:47 +0200 |
| commit | e9796a0b3f143f88204fd4aa5ca247baa99ce299 (patch) | |
| tree | 8fa356043061bf0ce1a0e2670c10a4e832a81b61 /src | |
| parent | 53fb1785ce3be4c014e854659b8f39777d23b2a5 (diff) | |
| download | qxmpp-e9796a0b3f143f88204fd4aa5ca247baa99ce299.tar.gz | |
RegistrationManager: Replace QScopedPointer with unique_ptr
The <memory> header is already included and there are no reasons to use
something different than non-Qt C++ projects use.
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/QXmppRegistrationManager.cpp | 2 | ||||
| -rw-r--r-- | src/client/QXmppRegistrationManager.h | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/client/QXmppRegistrationManager.cpp b/src/client/QXmppRegistrationManager.cpp index 6dd00fd0..24504010 100644 --- a/src/client/QXmppRegistrationManager.cpp +++ b/src/client/QXmppRegistrationManager.cpp @@ -44,7 +44,7 @@ QXmppRegistrationManagerPrivate::QXmppRegistrationManagerPrivate() /// Default constructor. /// QXmppRegistrationManager::QXmppRegistrationManager() - : d(new QXmppRegistrationManagerPrivate) + : d(std::make_unique<QXmppRegistrationManagerPrivate>()) { } diff --git a/src/client/QXmppRegistrationManager.h b/src/client/QXmppRegistrationManager.h index 4a10ffb7..2a844593 100644 --- a/src/client/QXmppRegistrationManager.h +++ b/src/client/QXmppRegistrationManager.h @@ -9,8 +9,6 @@ #include "QXmppClientExtension.h" #include "QXmppRegisterIq.h" -#include <QScopedPointer> - class QXmppRegistrationManagerPrivate; /// @@ -348,7 +346,7 @@ private Q_SLOTS: private: void setSupportedByServer(bool supportedByServer); - QScopedPointer<QXmppRegistrationManagerPrivate> d; + const std::unique_ptr<QXmppRegistrationManagerPrivate> d; }; #endif // QXMPPREGISTRATIONMANAGER_H |
