mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
Use 'const_iterator' to prevent MSVC from complaining
This commit is contained in:
parent
f8e05b6be3
commit
93eac8b068
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
DummyPort* port = *i;
|
||||||
if ((port->type () == type) && flags == (port->flags () & flags)) {
|
if ((port->type () == type) && flags == (port->flags () & flags)) {
|
||||||
if (!use_regexp || !regexec (&port_regex, port->name ().c_str (), 0, NULL, 0)) {
|
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_midi = 0;
|
||||||
int n_audio = 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;
|
DummyPort* port = *i;
|
||||||
if (port->is_output () && port->is_physical ()) {
|
if (port->is_output () && port->is_physical ()) {
|
||||||
switch (port->type ()) {
|
switch (port->type ()) {
|
||||||
|
|
@ -1248,7 +1248,7 @@ DummyAudioBackend::n_physical_inputs () const
|
||||||
{
|
{
|
||||||
int n_midi = 0;
|
int n_midi = 0;
|
||||||
int n_audio = 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;
|
DummyPort* port = *i;
|
||||||
if (port->is_input () && port->is_physical ()) {
|
if (port->is_input () && port->is_physical ()) {
|
||||||
switch (port->type ()) {
|
switch (port->type ()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue