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/list_item.cpp | |
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/list_item.cpp')
-rw-r--r-- | src/list_item.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/list_item.cpp b/src/list_item.cpp index d93b81f..16eb9e8 100644 --- a/src/list_item.cpp +++ b/src/list_item.cpp @@ -50,13 +50,12 @@ StatusType StatusListItem::get_status_type() { return status_type; } -APActivity* StatusListItem::get_activity() { +APActivityPtr StatusListItem::get_activity() { return data_archive->get_activity(status_index, {status_type}); } const QString StatusListItem::get_info_html(int text_zone_width, QLocale* locale) { - APActivity* activity = data_archive->get_activity(status_index, {status_type}); + APActivityPtr activity = data_archive->get_activity(status_index, {status_type}); QString html = activity->get_html_render({text_zone_width, locale}); - delete activity; activity = nullptr; return html; } |