diff options
author | ConfuSomu | 2024-03-20 13:28:19 -0400 |
---|---|---|
committer | ConfuSomu | 2024-03-20 13:28:19 -0400 |
commit | 4e59eadba3b0d4586a9122e6a825ea030a139c9a (patch) | |
tree | 6674c2b23ef6295e7a8d60bb034c3321e7a5a996 /src/activitypub/apobject.h | |
parent | 0e32ef940e53c4f10d84762f2de6836025f87610 (diff) | |
download | ActorViewer-4e59eadba3b0d4586a9122e6a825ea030a139c9a.tar ActorViewer-4e59eadba3b0d4586a9122e6a825ea030a139c9a.tar.gz ActorViewer-4e59eadba3b0d4586a9122e6a825ea030a139c9a.zip |
Use smart pointers with AP classes and Instance
Diffstat (limited to 'src/activitypub/apobject.h')
-rw-r--r-- | src/activitypub/apobject.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <QDateTime> +#include <QMetaType> +#include <memory> class APObject : protected APBase { public: @@ -34,3 +36,6 @@ protected: APAttachmentList attachments; }; + +typedef std::shared_ptr<APObject> APObjectPtr; +Q_DECLARE_METATYPE(APObjectPtr); |