From 4e59eadba3b0d4586a9122e6a825ea030a139c9a Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Wed, 20 Mar 2024 13:28:19 -0400 Subject: Use smart pointers with AP classes and Instance --- src/activitypub/apobject.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/activitypub/apobject.h') diff --git a/src/activitypub/apobject.h b/src/activitypub/apobject.h index 62e60c8..5f17e80 100644 --- a/src/activitypub/apobject.h +++ b/src/activitypub/apobject.h @@ -5,6 +5,8 @@ #include "apattachment.h" #include "../types.h" #include +#include +#include class APObject : protected APBase { public: @@ -34,3 +36,6 @@ protected: APAttachmentList attachments; }; + +typedef std::shared_ptr APObjectPtr; +Q_DECLARE_METATYPE(APObjectPtr); -- cgit v1.2.3-54-g00ecf