From 0287f19b3eabf6b6632d51c0288e6cf0be2c5e69 Mon Sep 17 00:00:00 2001
From: Yuhang Zhao <zhaoyuhang@rankyee.com>
Date: 周三, 06 12月 2023 18:04:31 +0800
Subject: [PATCH] update pointer usage

---
 src/core/corewindowagent_p.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/core/corewindowagent_p.h b/src/core/corewindowagent_p.h
index faa61f8..6b1912d 100644
--- a/src/core/corewindowagent_p.h
+++ b/src/core/corewindowagent_p.h
@@ -16,10 +16,11 @@
 
         CoreWindowAgent *q_ptr; // no need to initialize
 
-        bool setup(QObject *host, WindowItemDelegate *delegate);
+        bool setup(const QObject *host, const WindowItemDelegate *delegate);
 
-        std::unique_ptr<AbstractWindowContext> context;
+        AbstractWindowContext *context;
 
+    private:
         Q_DISABLE_COPY_MOVE(CoreWindowAgentPrivate)
     };
 

--
Gitblit v1.9.1