diff options
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; } |