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
284d1ff0
Commit
284d1ff0
authored
Aug 13, 2013
by
Tristan Matthews
Browse files
* #28351: iaxcall: use range-based for loops
parent
2740f79a
Changes
1
Show whitespace changes
Inline
Side-by-side
daemon/src/iax/iaxcall.cpp
View file @
284d1ff0
...
...
@@ -74,8 +74,8 @@ int IAXCall::getSupportedFormat(const std::string &accountID) const
if
(
account
)
{
vector
<
int
>
codecs
(
account
->
getActiveAudioCodecs
());
for
(
vector
<
int
>::
const_iterator
i
=
codecs
.
begin
();
i
!=
codecs
.
end
();
++
i
)
format_mask
|=
codecToASTFormat
(
*
i
);
for
(
const
auto
&
i
:
codecs
)
format_mask
|=
codecToASTFormat
(
i
);
}
else
ERROR
(
"No IAx account could be found"
);
...
...
@@ -90,8 +90,8 @@ int IAXCall::getFirstMatchingFormat(int needles, const std::string &accountID) c
if
(
account
!=
NULL
)
{
vector
<
int
>
codecs
(
account
->
getActiveAudioCodecs
());
for
(
vector
<
int
>::
const_iterator
i
=
codecs
.
begin
();
i
!=
codecs
.
end
();
++
i
)
{
int
format_mask
=
codecToASTFormat
(
*
i
);
for
(
const
auto
&
i
:
codecs
)
{
int
format_mask
=
codecToASTFormat
(
i
);
// Return the first that matches
if
(
format_mask
&
needles
)
...
...
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