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
98a06870
Commit
98a06870
authored
Aug 13, 2013
by
Tristan Matthews
Browse files
* #28351: conference: use range-based for loops
parent
2a66642a
Changes
1
Hide whitespace changes
Inline
Side-by-side
daemon/src/conference.cpp
View file @
98a06870
...
...
@@ -66,10 +66,9 @@ void Conference::remove(const std::string &participant_id)
void
Conference
::
bindParticipant
(
const
std
::
string
&
participant_id
)
{
for
(
ParticipantSet
::
const_iterator
iter
=
participants_
.
begin
();
iter
!=
participants_
.
end
();
++
iter
)
if
(
participant_id
!=
*
iter
)
Manager
::
instance
().
getMainBuffer
().
bindCallID
(
participant_id
,
*
iter
);
for
(
const
auto
&
iter
:
participants_
)
if
(
participant_id
!=
iter
)
Manager
::
instance
().
getMainBuffer
().
bindCallID
(
participant_id
,
iter
);
Manager
::
instance
().
getMainBuffer
().
bindCallID
(
participant_id
,
MainBuffer
::
DEFAULT_ID
);
}
...
...
@@ -108,15 +107,15 @@ bool Conference::toggleRecording()
// start recording
if
(
startRecording
)
{
for
(
ParticipantSet
::
const_iterator
iter
=
participants_
.
begin
();
iter
!=
participants_
.
end
();
++
iter
)
mbuffer
.
bindHalfDuplexOut
(
process_id
,
*
iter
);
for
(
const
auto
&
iter
:
participants_
)
mbuffer
.
bindHalfDuplexOut
(
process_id
,
iter
);
mbuffer
.
bindHalfDuplexOut
(
process_id
,
MainBuffer
::
DEFAULT_ID
);
Recordable
::
recorder_
.
start
();
}
else
{
for
(
ParticipantSet
::
const_iterator
iter
=
participants_
.
begin
();
iter
!=
participants_
.
end
();
++
iter
)
mbuffer
.
unBindHalfDuplexOut
(
process_id
,
*
iter
);
for
(
const
auto
&
iter
:
participants_
)
mbuffer
.
unBindHalfDuplexOut
(
process_id
,
iter
);
mbuffer
.
unBindHalfDuplexOut
(
process_id
,
MainBuffer
::
DEFAULT_ID
);
}
...
...
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