diff data/model/test/MockWaveModel.cpp @ 1433:c0f69bddea12 streaming-csv-writer

Already pre-allocated, don't push_back.
author Lucas Thompson <dev@lucas.im>
date Tue, 17 Apr 2018 10:03:49 +0100
parents 54af1e21705c
children a12fd0456f0c
line wrap: on
line diff
--- a/data/model/test/MockWaveModel.cpp	Tue Apr 17 10:03:49 2018 +0100
+++ b/data/model/test/MockWaveModel.cpp	Tue Apr 17 10:03:49 2018 +0100
@@ -55,7 +55,7 @@
     vector<floatvec_t> data(tochannel - fromchannel + 1);
     
     for (int c = fromchannel; c <= tochannel; ++c) {
-        data.push_back(getData(c, start, count));
+        data[c] = getData(c, start, count);
     }
 
     return data;