use std::map instead of QMap for the node connections

std::map gives us a reverse iterator which we need. QMap doesn't seem to.
This commit is contained in:
itsmattkc
2021-01-15 14:34:36 +11:00
parent b83677e319
commit 96c0921193
7 changed files with 49 additions and 49 deletions
+3 -2
View File
@@ -396,7 +396,7 @@ public:
virtual void Hash(QCryptographicHash& hash, const rational &time) const;
const QVector<InputConnection>& edges() const
const std::vector<InputConnection>& edges() const
{
return output_connections();
}
@@ -491,7 +491,8 @@ template<class T>
void Node::FindInputNodeInternal(const Node* n, QVector<T *> &list)
{
foreach (NodeInput* input, n->inputs_) {
foreach (Node* edge, input->edges()) {
for (auto it=input->edges().cbegin(); it!=input->edges().cend(); it++) {
Node* edge = it->second;
T* cast_test = dynamic_cast<T*>(edge);
if (cast_test) {