Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
2740f79a
Commit
2740f79a
authored
Aug 13, 2013
by
Tristan Matthews
Browse files
* #28351: iaxvoiplink: use range-based for loops
parent
17bf6cea
Changes
1
Show whitespace changes
Inline
Side-by-side
daemon/src/iax/iaxvoiplink.cpp
View file @
2740f79a
...
...
@@ -105,8 +105,8 @@ IAXVoIPLink::terminate()
sfl
::
ScopedLock
m
(
iaxCallMapMutex_
);
for
(
IAXCallMap
::
iterator
iter
=
iaxCallMap_
.
begin
();
iter
!=
iaxCallMap_
.
end
();
++
iter
)
{
IAXCall
*
call
=
static_cast
<
IAXCall
*>
(
iter
->
second
);
for
(
auto
&
iter
:
iaxCallMap_
)
{
IAXCall
*
call
=
static_cast
<
IAXCall
*>
(
iter
.
second
);
if
(
call
)
{
sfl
::
ScopedLock
lock
(
mutexIAX_
);
...
...
@@ -182,8 +182,8 @@ IAXVoIPLink::getCallIDs()
void
IAXVoIPLink
::
sendAudioFromMic
()
{
for
(
IAXCallMap
::
const_iterator
iter
=
iaxCallMap_
.
begin
();
iter
!=
iaxCallMap_
.
end
()
;
++
iter
)
{
IAXCall
*
currentCall
=
static_cast
<
IAXCall
*>
(
iter
->
second
);
for
(
const
auto
&
iter
:
iaxCallMap_
)
{
IAXCall
*
currentCall
=
static_cast
<
IAXCall
*>
(
iter
.
second
);
if
(
!
currentCall
or
currentCall
->
getState
()
!=
Call
::
ACTIVE
)
continue
;
...
...
@@ -460,9 +460,8 @@ IAXVoIPLink::clearIaxCallMap()
{
sfl
::
ScopedLock
m
(
iaxCallMapMutex_
);
for
(
IAXCallMap
::
const_iterator
iter
=
iaxCallMap_
.
begin
();
iter
!=
iaxCallMap_
.
end
();
++
iter
)
delete
iter
->
second
;
for
(
const
auto
&
iter
:
iaxCallMap_
)
delete
iter
.
second
;
iaxCallMap_
.
clear
();
...
...
@@ -540,8 +539,8 @@ IAXVoIPLink::iaxFindCallBySession(iax_session* session)
{
sfl
::
ScopedLock
m
(
iaxCallMapMutex_
);
for
(
IAXCallMap
::
const_iterator
iter
=
iaxCallMap_
.
begin
();
iter
!=
iaxCallMap_
.
end
();
++
iter
)
{
IAXCall
*
call
=
static_cast
<
IAXCall
*>
(
iter
->
second
);
for
(
const
auto
&
iter
:
iaxCallMap_
)
{
IAXCall
*
call
=
static_cast
<
IAXCall
*>
(
iter
.
second
);
if
(
call
and
call
->
session
==
session
)
return
call
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment