13
0

fix compiler issues with pair<T1,T2> construction

This commit is contained in:
Paul Davis 2016-04-23 13:16:53 -04:00
parent d0f5958542
commit 51064f77a8

View File

@ -127,9 +127,8 @@ SlavableAutomationControl::add_master (boost::shared_ptr<AutomationControl> m)
/* ratio will be recomputed below */
PBD::ID id (m->id());
res = _masters.insert (make_pair<PBD::ID,MasterRecord> (id, MasterRecord (m, 1.0)));
pair<PBD::ID,MasterRecord> newpair (m->id(), MasterRecord (m, 1.0));
res = _masters.insert (newpair);
if (res.second) {