Skip to content

Commit

Permalink
make peakvoltage vector a reference in amp_drop_first_last
Browse files Browse the repository at this point in the history
  • Loading branch information
anilbey committed Dec 14, 2023
1 parent 9b9d382 commit d5d5ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion efel/cppcore/LibV2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ int LibV2::amp_drop_first_last(mapStr2intVec& IntFeatureData,
mapStr2Str& StringData) {
const auto& peakVoltageFeature =
getFeatures(DoubleFeatureData, {"peak_voltage"});
const vector<double> peakvoltage = peakVoltageFeature.at("peak_voltage");
const vector<double>& peakvoltage = peakVoltageFeature.at("peak_voltage");

if (peakvoltage.size() < 2) {
GErrorStr +=
Expand Down

0 comments on commit d5d5ed7

Please sign in to comment.