]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decode/rowdata.cpp
Annotation: Use special type for the class, not plain int
[pulseview.git] / pv / data / decode / rowdata.cpp
index af1fc449ac35924dac9796c7f14f0ca37f49f137..aff4a26b333b68b2672af073c87b8ad5c392d406 100644 (file)
@@ -42,11 +42,11 @@ void RowData::get_annotation_subset(
                        dest.push_back(annotation);
 }
 
-void RowData::push_annotation(const Annotation &a)
+void RowData::emplace_annotation(srd_proto_data *pdata)
 {
-       annotations_.push_back(a);
+       annotations_.emplace_back(pdata);
 }
 
-} // decode
-} // data
-} // pv
+}  // namespace decode
+}  // namespace data
+}  // namespace pv