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
04080fc7
Commit
04080fc7
authored
Aug 14, 2013
by
Tristan Matthews
Browse files
* #28351: instantmessagingtest: use range-based for loops
parent
53164722
Changes
1
Hide whitespace changes
Inline
Side-by-side
daemon/test/instantmessagingtest.cpp
View file @
04080fc7
...
...
@@ -192,9 +192,7 @@ void InstantMessagingTest::testXmlUriListParsing()
sfl
::
InstantMessaging
::
UriEntry
::
iterator
iterAttr
;
// An iterator over list entries
for
(
sfl
::
InstantMessaging
::
UriList
::
iterator
iterEntry
=
list
.
begin
();
iterEntry
!=
list
.
end
();
++
iterEntry
)
{
sfl
::
InstantMessaging
::
UriEntry
entry
=
static_cast
<
sfl
::
InstantMessaging
::
UriEntry
>
(
*
iterEntry
);
for
(
auto
&
entry
:
list
)
{
iterAttr
=
entry
.
find
(
sfl
::
IM_XML_URI
);
CPPUNIT_ASSERT
((
iterAttr
->
second
==
std
::
string
(
"sip:alex@example.com"
))
or
...
...
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