mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Make a copy of listeners list before calling them in C++ wrapper so that the list can be modified in these listeners.
This commit is contained in:
parent
fe79c8fdb4
commit
3f916b1972
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ static {{{returnType}}} {{{cbName}}}({{{declArgs}}}) {
|
|||
|
||||
{{#ismultilistenable}}
|
||||
{{{cListenerName}}} *cbs = {{{currentCallbacksGetter}}}({{{firstArgName}}});
|
||||
std::list<std::shared_ptr<Listener> > &listeners = *(std::list<std::shared_ptr<Listener> > *){{{userDataGetter}}}(cbs);
|
||||
std::list<std::shared_ptr<Listener> > listeners = *(std::list<std::shared_ptr<Listener> > *){{{userDataGetter}}}(cbs);
|
||||
for(auto it=listeners.begin(); it!=listeners.end(); it++) {
|
||||
std::shared_ptr<{{{cppListenerName}}}> listener = std::static_pointer_cast<{{{cppListenerName}}},Listener>(*it);
|
||||
{{{cppMethodCallingLine}}};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue