libsysprof-analyze: give counter values access to type

Otherwise they won't know how to return the proper value to callers.
This commit is contained in:
Christian Hergert
2023-06-27 15:50:10 -07:00
parent b5f3bd2b26
commit 4efb0abbf8
3 changed files with 25 additions and 5 deletions

View File

@ -74,7 +74,7 @@ sysprof_document_counter_get_item (GListModel *model,
value = &g_array_index (self->values, SysprofDocumentTimedValue, position);
return _sysprof_document_counter_value_new (value);
return _sysprof_document_counter_value_new (self->type, value);
}
static void