uint32_t max_ann_class_id = 0;
for (AnnotationClass* c : row_->ann_classes()) {
- if (!c->visible)
+ if (!c->visible())
all_ann_classes_enabled = false;
else
all_ann_classes_disabled = false;
vector<size_t> class_visible;
class_visible.resize(max_ann_class_id + 1, 0);
for (AnnotationClass* c : row_->ann_classes())
- if (c->visible)
+ if (c->visible())
class_visible[c->id] = 1;
for (const auto& annotation : annotations_)
{
const srd_proto_data_annotation *const pda = (const srd_proto_data_annotation*)pdata->data;
- Annotation::Class ann_class_id = (Annotation::Class)(pda->ann_class);
+ uint32_t ann_class_id = pda->ann_class;
// Look up the longest annotation text to see if we have it in storage.
// This implies that if the longest text is the same, the shorter texts