diff --git a/src/common/SkinModelImpl.cpp b/src/common/SkinModelImpl.cpp index ef9993793af..51f5e7c1b67 100644 --- a/src/common/SkinModelImpl.cpp +++ b/src/common/SkinModelImpl.cpp @@ -286,7 +286,7 @@ std::vector Connector::connectorsByComponentType(const Component &c) for (auto it : *idmap) { if (it.second->defaultComponent == c) - res.push_back(Connector(it.second)); + res.emplace_back(Connector(it.second)); } return res; } diff --git a/src/surge-testrunner/UnitTestsLUA.cpp b/src/surge-testrunner/UnitTestsLUA.cpp index f2f5e37b343..a51e9d97b3c 100644 --- a/src/surge-testrunner/UnitTestsLUA.cpp +++ b/src/surge-testrunner/UnitTestsLUA.cpp @@ -448,7 +448,7 @@ std::vector runFormula(SurgeStorage *storage, FormulaModulat float r[Surge::Formula::max_formula_outputs]; Surge::Formula::valueAt(iphase, phase, storage, fs, &es, r); - res.push_back(formulaObservation(iphase, phase, r[0])); + res.emplace_back(formulaObservation(iphase, phase, r[0])); for (int i = 0; i < Surge::Formula::max_formula_outputs; ++i) res.back().vVec[i] = r[i]; diff --git a/src/surge-testrunner/UnitTestsMSEG.cpp b/src/surge-testrunner/UnitTestsMSEG.cpp index 09c8721162f..aaa5fc68574 100644 --- a/src/surge-testrunner/UnitTestsMSEG.cpp +++ b/src/surge-testrunner/UnitTestsMSEG.cpp @@ -61,7 +61,7 @@ std::vector runMSEG(MSEGStorage *ms, float dPhase, float phaseM es.released = release; auto r = Surge::MSEG::valueAt(iphase, phase, deform, ms, &es, false); - res.push_back(msegObservation(iphase, phase, r)); + res.emplace_back(msegObservation(iphase, phase, r)); phase += dPhase; if (phase > 1) {