X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdata%2Fdecode%2Fannotation.cpp;h=55caa2d7adbfb9810260811ef5b6c0b1372ef2f3;hp=e983b0df1c3e971ba7942c9ccadb86ed10e09bbb;hb=6a26fc4417798ab21654197e105e707a14d462f0;hpb=5a914348e8c95f92fd7c1c5988d563c5fb472aa2 diff --git a/pv/data/decode/annotation.cpp b/pv/data/decode/annotation.cpp index e983b0df..55caa2d7 100644 --- a/pv/data/decode/annotation.cpp +++ b/pv/data/decode/annotation.cpp @@ -24,7 +24,7 @@ extern "C" { #include #include -#include "annotation.hpp" +#include 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