comparison data/model/Model.cpp @ 1752:6d09d68165a4 by-id

Further review of ById: make IDs only available when adding a model to the ById store, not by querying the item directly. This means any id encountered in the wild must have been added to the store at some point (even if later released), which simplifies reasoning about lifecycles
author Chris Cannam
date Fri, 05 Jul 2019 15:28:07 +0100
parents 565575463752
children 8529763e2258
comparison
equal deleted inserted replaced
1751:77543124651b 1752:6d09d68165a4
54 54
55 m_sourceModel = modelId; 55 m_sourceModel = modelId;
56 56
57 auto model = ModelById::get(m_sourceModel); 57 auto model = ModelById::get(m_sourceModel);
58 if (model) { 58 if (model) {
59 connect(model.get(), SIGNAL(alignmentCompletionChanged()), 59 connect(model.get(), SIGNAL(alignmentCompletionChanged(ModelId)),
60 this, SIGNAL(alignmentCompletionChanged())); 60 this, SIGNAL(alignmentCompletionChanged(ModelId)));
61 } 61 }
62 62
63 63
64 /* 64 /*
65 if (m_sourceModel) { 65 if (m_sourceModel) {