]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decode/annotation.cpp
Rework decoder infrastructure
[pulseview.git] / pv / data / decode / annotation.cpp
index e983b0df1c3e971ba7942c9ccadb86ed10e09bbb..55caa2d7adbfb9810260811ef5b6c0b1372ef2f3 100644 (file)
@@ -24,7 +24,7 @@ extern "C" {
 #include <cassert>
 #include <vector>
 
-#include "annotation.hpp"
+#include <pv/data/decode/annotation.hpp>
 
 using std::vector;
 
@@ -49,6 +49,8 @@ Annotation::Annotation(const srd_proto_data *const pdata, const Row *row) :
                annotations_.push_back(QString::fromUtf8(*annotations));
                annotations++;
        }
+
+       annotations_.shrink_to_fit();
 }
 
 uint64_t Annotation::start_sample() const