X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fdata%2Fdecode%2Fannotation.cpp;h=55caa2d7adbfb9810260811ef5b6c0b1372ef2f3;hb=6a26fc4417798ab21654197e105e707a14d462f0;hp=e983b0df1c3e971ba7942c9ccadb86ed10e09bbb;hpb=c6b4e925a8c5d855a70ab2815e8bc1c371d5801a;p=pulseview.git 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