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/apreblog.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/activitypub/apreblog.h') diff --git a/src/activitypub/apreblog.h b/src/activitypub/apreblog.h index cc340b8..66a6382 100644 --- a/src/activitypub/apreblog.h +++ b/src/activitypub/apreblog.h @@ -3,6 +3,8 @@ #include "apobject.h" #include "apobject.h" #include "src/types.h" +#include +#include #include struct APReblogFields { @@ -25,3 +27,6 @@ protected: APObject object; // the object that was reblogged (impossible to be an APReblog) StatusType visibility; }; + +typedef std::shared_ptr APReblogPtr; +Q_DECLARE_METATYPE(APReblogPtr); -- cgit v1.2.3-54-g00ecf