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/apactor.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/activitypub/apactor.h') diff --git a/src/activitypub/apactor.h b/src/activitypub/apactor.h index ad8d689..70d80de 100644 --- a/src/activitypub/apactor.h +++ b/src/activitypub/apactor.h @@ -3,6 +3,8 @@ #include "apbase.h" #include "apattachment.h" #include +#include +#include #include struct APPropertyValue { @@ -57,6 +59,9 @@ private: // APActorList known_as; }; +typedef std::shared_ptr APActorPtr; +Q_DECLARE_METATYPE(APActorPtr); + class APActorList : public std::vector, APBase { public: QString get_html_render(HtmlRenderDetails render_info); -- cgit v1.2.3-54-g00ecf