aboutsummaryrefslogtreecommitdiffstats
path: root/src/activitypub/apreblog.h
diff options
context:
space:
mode:
authorConfuSomu2024-03-20 13:28:19 -0400
committerConfuSomu2024-03-20 13:28:19 -0400
commit4e59eadba3b0d4586a9122e6a825ea030a139c9a (patch)
tree6674c2b23ef6295e7a8d60bb034c3321e7a5a996 /src/activitypub/apreblog.h
parent0e32ef940e53c4f10d84762f2de6836025f87610 (diff)
downloadActorViewer-4e59eadba3b0d4586a9122e6a825ea030a139c9a.tar
ActorViewer-4e59eadba3b0d4586a9122e6a825ea030a139c9a.tar.gz
ActorViewer-4e59eadba3b0d4586a9122e6a825ea030a139c9a.zip
Use smart pointers with AP classes and Instance
Diffstat (limited to 'src/activitypub/apreblog.h')
-rw-r--r--src/activitypub/apreblog.h5
1 files changed, 5 insertions, 0 deletions
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 <QMetaType>
+#include <memory>
#include <vector>
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<APReblog> APReblogPtr;
+Q_DECLARE_METATYPE(APReblogPtr);