Change/improve enum as IN and OUT are defined via windows.h
This commit is contained in:
parent
029c530203
commit
32f4d7787e
@ -47,7 +47,7 @@ GlobalPortMatrix::setup_ports (int dim)
|
||||
}
|
||||
|
||||
_ports[dim].suspend_signals ();
|
||||
_ports[dim].gather (_session, type(), dim == IN, false, show_only_bundles ());
|
||||
_ports[dim].gather (_session, type(), dim == FLOW_IN, false, show_only_bundles ());
|
||||
_ports[dim].resume_signals ();
|
||||
}
|
||||
|
||||
@ -58,8 +58,8 @@ GlobalPortMatrix::set_state (BundleChannel c[2], bool s)
|
||||
return;
|
||||
}
|
||||
|
||||
Bundle::PortList const & in_ports = c[IN].bundle->channel_ports (c[IN].channel);
|
||||
Bundle::PortList const & out_ports = c[OUT].bundle->channel_ports (c[OUT].channel);
|
||||
Bundle::PortList const & in_ports = c[FLOW_IN].bundle->channel_ports (c[FLOW_IN].channel);
|
||||
Bundle::PortList const & out_ports = c[FLOW_OUT].bundle->channel_ports (c[FLOW_OUT].channel);
|
||||
|
||||
for (Bundle::PortList::const_iterator i = in_ports.begin(); i != in_ports.end(); ++i) {
|
||||
for (Bundle::PortList::const_iterator j = out_ports.begin(); j != out_ports.end(); ++j) {
|
||||
@ -102,8 +102,8 @@ GlobalPortMatrix::get_state (BundleChannel c[2]) const
|
||||
return PortMatrixNode::NOT_ASSOCIATED;
|
||||
}
|
||||
|
||||
Bundle::PortList const & in_ports = c[IN].bundle->channel_ports (c[IN].channel);
|
||||
Bundle::PortList const & out_ports = c[OUT].bundle->channel_ports (c[OUT].channel);
|
||||
Bundle::PortList const & in_ports = c[FLOW_IN].bundle->channel_ports (c[FLOW_IN].channel);
|
||||
Bundle::PortList const & out_ports = c[FLOW_OUT].bundle->channel_ports (c[FLOW_OUT].channel);
|
||||
if (in_ports.empty() || out_ports.empty()) {
|
||||
/* we're looking at a bundle with no parts associated with this channel,
|
||||
so nothing to connect */
|
||||
|
@ -46,8 +46,8 @@ public:
|
||||
private:
|
||||
/* see PortMatrix: signal flow from 0 to 1 (out to in) */
|
||||
enum {
|
||||
OUT = 0,
|
||||
IN = 1,
|
||||
FLOW_OUT = 0,
|
||||
FLOW_IN = 1,
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user