Replace ann_format with ann_class.
[pulseview.git] / pv / data / decode / annotation.cpp
index b0517ae69ef9c6a13eefc4bad41efeea08b7d9a0..16895851a2c4401432a3e028ef658f94118b363e 100644 (file)
@@ -22,6 +22,7 @@ extern "C" {
 #include <libsigrokdecode/libsigrokdecode.h>
 }
 
+#include <cassert>
 #include <vector>
 
 #include "annotation.h"
@@ -39,7 +40,7 @@ Annotation::Annotation(const srd_proto_data *const pdata) :
                (const srd_proto_data_annotation*)pdata->data;
        assert(pda);
 
-       _format = pda->ann_format;
+       _format = pda->ann_class;
 
        const char *const *annotations = (char**)pda->ann_text;
        while(*annotations) {