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/appost.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/activitypub/appost.h') diff --git a/src/activitypub/appost.h b/src/activitypub/appost.h index ccbedd9..8fe6430 100644 --- a/src/activitypub/appost.h +++ b/src/activitypub/appost.h @@ -3,6 +3,8 @@ #include "apobject.h" #include "apbase.h" #include "fields.h" +#include +#include #include // APPost represents an ActivityPub Note Object @@ -23,3 +25,6 @@ protected: QString get_html_status_languages(); }; + +typedef std::shared_ptr APPostPtr; +Q_DECLARE_METATYPE(APPostPtr); -- cgit v1.2.3-54-g00ecf