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
4ef9da11
Commit
4ef9da11
authored
Aug 14, 2013
by
Tristan Matthews
Browse files
* #28351: mainbuffer: use range-based for loops
parent
c1660179
Changes
1
Hide whitespace changes
Inline
Side-by-side
daemon/src/audio/mainbuffer.cpp
View file @
4ef9da11
...
...
@@ -351,8 +351,8 @@ size_t MainBuffer::discard(size_t toDiscard, const std::string &call_id)
if
(
!
callid_set
or
callid_set
->
empty
())
return
0
;
for
(
CallIDSet
::
iterator
iter
=
callid_set
->
begin
();
iter
!=
callid_set
->
end
();
++
iter
)
discardByID
(
toDiscard
,
*
ite
r
,
call_id
);
for
(
auto
&
item
:
*
callid_set
)
discardByID
(
toDiscard
,
ite
m
,
call_id
);
return
toDiscard
;
}
...
...
@@ -374,9 +374,8 @@ void MainBuffer::flush(const std::string & call_id)
if
(
callid_set
==
NULL
)
return
;
for
(
CallIDSet
::
iterator
iter
=
callid_set
->
begin
();
iter
!=
callid_set
->
end
();
++
iter
)
flushByID
(
*
iter
,
call_id
);
for
(
auto
&
item
:
*
callid_set
)
flushByID
(
item
,
call_id
);
}
void
MainBuffer
::
flushByID
(
const
std
::
string
&
call_id
,
const
std
::
string
&
reader_id
)
...
...
@@ -390,8 +389,8 @@ void MainBuffer::flushByID(const std::string & call_id, const std::string & read
void
MainBuffer
::
flushAllBuffers
()
{
for
(
RingBufferMap
::
iterator
iter
=
ringBufferMap_
.
begin
();
iter
!=
ringBufferMap_
.
end
();
++
iter
)
ite
r
->
second
->
flushAll
();
for
(
auto
&
item
:
ringBufferMap_
)
ite
m
.
second
->
flushAll
();
}
void
MainBuffer
::
dumpInfo
()
...
...
Write
Preview
Markdown
is supported
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