From db00428f146a7daf2c8b5c4de6c8c1e317f950a4 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周日, 10 12月 2023 23:46:31 +0800 Subject: [PATCH] Fix macro definition mistake --- src/core/corewindowagent.h | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/corewindowagent.h b/src/core/corewindowagent.h index 831f8e1..1681acc 100644 --- a/src/core/corewindowagent.h +++ b/src/core/corewindowagent.h @@ -1,6 +1,8 @@ #ifndef COREWINDOWAGENT_H #define COREWINDOWAGENT_H +#include <memory> + #include <QtCore/QObject> #include <QWKCore/qwkcoreglobal.h> @@ -13,7 +15,7 @@ Q_OBJECT Q_DECLARE_PRIVATE(CoreWindowAgent) public: - ~CoreWindowAgent(); + ~CoreWindowAgent() override; enum SystemButton { Unknown, @@ -34,9 +36,9 @@ void raise(); protected: - CoreWindowAgent(CoreWindowAgentPrivate &d, QObject *parent = nullptr); + explicit CoreWindowAgent(CoreWindowAgentPrivate &d, QObject *parent = nullptr); - QScopedPointer<CoreWindowAgentPrivate> d_ptr; + const std::unique_ptr<CoreWindowAgentPrivate> d_ptr; }; } -- Gitblit v1.9.1