]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decode/rowdata.hpp
rowdata: Use emplace_back() for Annotation objects.
[pulseview.git] / pv / data / decode / rowdata.hpp
index 3cb69b3ef1b5ad84ad95581c961c9a4f9694850f..07cc41bf3eb1f8febf04c06595d8da2f142eb7da 100644 (file)
@@ -22,6 +22,8 @@
 
 #include <vector>
 
+#include <libsigrokdecode/libsigrokdecode.h>
+
 #include "annotation.hpp"
 
 using std::vector;
@@ -45,7 +47,7 @@ public:
                vector<pv::data::decode::Annotation> &dest,
                uint64_t start_sample, uint64_t end_sample) const;
 
-       void push_annotation(const Annotation &a);
+       void emplace_annotation(srd_proto_data *pdata);
 
 private:
        vector<Annotation> annotations_;