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
cacbed04
Commit
cacbed04
authored
Aug 14, 2013
by
Tristan Matthews
Browse files
* #28351: managerimpl: use range-based for loop
parent
4ef9da11
Changes
1
Hide whitespace changes
Inline
Side-by-side
daemon/src/managerimpl.cpp
View file @
cacbed04
...
...
@@ -1594,10 +1594,9 @@ bool ManagerImpl::sendTextMessage(const std::string& callID, const std::string&
ParticipantSet
participants
(
conf
->
getParticipantList
());
for
(
ParticipantSet
::
const_iterator
iter_p
=
participants
.
begin
();
iter_p
!=
participants
.
end
();
++
iter_p
)
{
for
(
const
auto
&
participant
:
participants
)
{
std
::
string
accountId
=
getAccountFromCall
(
*
iter_p
);
std
::
string
accountId
=
getAccountFromCall
(
participant
);
Account
*
account
=
getAccount
(
accountId
);
...
...
@@ -1606,7 +1605,7 @@ bool ManagerImpl::sendTextMessage(const std::string& callID, const std::string&
return
false
;
}
account
->
getVoIPLink
()
->
sendTextMessage
(
*
iter_p
,
message
,
from
);
account
->
getVoIPLink
()
->
sendTextMessage
(
participant
,
message
,
from
);
}
return
true
;
...
...
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