Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akonadi Contacts
Commits
94bd3ea4
Commit
94bd3ea4
authored
Jan 20, 2017
by
Laurent Montel
😁
Browse files
Port to STL iterator
parent
74cc0d6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/editor/generalinfoeditor/messaging/messagingwidgetlister.cpp
View file @
94bd3ea4
...
...
@@ -100,10 +100,9 @@ void MessagingWidgetLister::storeContact(KContacts::Addressee &contact) const
}
// iterate over this list and modify the contact according
QMapIterator
<
QString
,
QStringList
>
it
(
protocolMap
);
while
(
it
.
hasNext
())
{
it
.
next
();
QMap
<
QString
,
QStringList
>::
const_iterator
it
=
protocolMap
.
cbegin
();
const
QMap
<
QString
,
QStringList
>::
const_iterator
itEnd
=
protocolMap
.
cend
();
for
(;
it
!=
itEnd
;
++
it
)
{
if
(
!
it
.
value
().
isEmpty
())
{
contact
.
insertCustom
(
it
.
key
(),
QStringLiteral
(
"All"
),
it
.
value
().
join
(
QString
(
0xE000
)));
}
else
{
...
...
src/editor/im/improtocols.cpp
View file @
94bd3ea4
...
...
@@ -39,9 +39,9 @@ IMProtocols::IMProtocols()
sortingMap
.
insert
((
*
it
)
->
name
(),
propertyName
);
}
QMap
Iterator
<
QString
,
QString
>
sortedIt
(
sortingMap
);
while
(
sortedIt
.
hasNext
())
{
sortedIt
.
next
();
QMap
<
QString
,
QString
>
::
const_iterator
sortedIt
=
sortingMap
.
cbegin
(
);
const
QMap
<
QString
,
QString
>::
const_iterator
sortedItEnd
=
sortingMap
.
cend
();
for
(;
sortedIt
!=
sortedItEnd
;
++
sortedIt
)
{
mSortedProtocols
.
append
(
sortedIt
.
value
());
}
}
...
...
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