fix definition of templateed foreach_track() methods
This commit is contained in:
parent
490fac1632
commit
df89fc9bba
@ -85,7 +85,7 @@ Session::foreach_track (void (Track::*method)(A), A arg)
|
|||||||
for (RouteList::iterator i = r->begin(); i != r->end(); i++) {
|
for (RouteList::iterator i = r->begin(); i != r->end(); i++) {
|
||||||
boost::shared_ptr<Track> tr = boost::dynamic_pointer_cast<Track> (*i);
|
boost::shared_ptr<Track> tr = boost::dynamic_pointer_cast<Track> (*i);
|
||||||
if (tr) {
|
if (tr) {
|
||||||
(tr->*method) (arg);
|
(tr.get()->*method) (arg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -98,7 +98,7 @@ Session::foreach_track (void (Track::*method)(A1, A2), A1 arg1, A2 arg2)
|
|||||||
for (RouteList::iterator i = r->begin(); i != r->end(); i++) {
|
for (RouteList::iterator i = r->begin(); i != r->end(); i++) {
|
||||||
boost::shared_ptr<Track> tr = boost::dynamic_pointer_cast<Track> (*i);
|
boost::shared_ptr<Track> tr = boost::dynamic_pointer_cast<Track> (*i);
|
||||||
if (tr) {
|
if (tr) {
|
||||||
(tr->*method) (arg1, arg2);
|
(tr.get()->*method) (arg1, arg2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user