Use 'const_iterator' to prevent MSVC from complaining

This commit is contained in:
John Emmas 2016-04-26 14:58:16 +01:00
parent f8e05b6be3
commit 93eac8b068

View File

@ -727,7 +727,7 @@ DummyAudioBackend::get_ports (
}
}
for (PortIndex::iterator i = _ports.begin (); i != _ports.end (); ++i) {
for (PortIndex::const_iterator i = _ports.begin (); i != _ports.end (); ++i) {
DummyPort* port = *i;
if ((port->type () == type) && flags == (port->flags () & flags)) {
if (!use_regexp || !regexec (&port_regex, port->name ().c_str (), 0, NULL, 0)) {
@ -1227,7 +1227,7 @@ DummyAudioBackend::n_physical_outputs () const
{
int n_midi = 0;
int n_audio = 0;
for (PortIndex::iterator i = _ports.begin (); i != _ports.end (); ++i) {
for (PortIndex::const_iterator i = _ports.begin (); i != _ports.end (); ++i) {
DummyPort* port = *i;
if (port->is_output () && port->is_physical ()) {
switch (port->type ()) {
@ -1248,7 +1248,7 @@ DummyAudioBackend::n_physical_inputs () const
{
int n_midi = 0;
int n_audio = 0;
for (PortIndex::iterator i = _ports.begin (); i != _ports.end (); ++i) {
for (PortIndex::const_iterator i = _ports.begin (); i != _ports.end (); ++i) {
DummyPort* port = *i;
if (port->is_input () && port->is_physical ()) {
switch (port->type ()) {