| 2739 | } |
| 2740 | |
| 2741 | static bool |
| 2742 | hasNodeOutputsInList(const NodesList& nodes, |
| 2743 | const NodePtr& node) |
| 2744 | { |
| 2745 | const NodesWList& outputs = node->getGuiOutputs(); |
| 2746 | bool foundOutput = false; |
| 2747 | |
| 2748 | for (NodesList::const_iterator it = nodes.begin(); it != nodes.end(); ++it) { |
| 2749 | if (*it != node) { |
| 2750 | for (NodesWList::const_iterator it2 = outputs.begin(); it2 != outputs.end(); ++it2) { |
| 2751 | if (it2->lock() == *it) { |
| 2752 | foundOutput = true; |
| 2753 | break; |
| 2754 | } |
| 2755 | } |
| 2756 | if (foundOutput) { |
| 2757 | break; |
| 2758 | } |
| 2759 | } |
| 2760 | } |
| 2761 | |
| 2762 | return foundOutput; |
| 2763 | } |
| 2764 | |
| 2765 | static bool |
| 2766 | hasNodeInputsInList(const NodesList& nodes, |
no test coverage detected