Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Messagelib
Commits
40ea5a67
Commit
40ea5a67
authored
Sep 11, 2022
by
Sandro Knauß
🐝
Browse files
Use for loop instead of iterate via index.
parent
ca9b12cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
mimetreeparser/src/messagepart.cpp
View file @
40ea5a67
...
...
@@ -880,11 +880,11 @@ void SignedMessagePart::sigStatusToMetaData()
if
(
key
.
numUserIDs
()
>
0
&&
key
.
userID
(
0
).
id
())
{
partMetaData
()
->
signer
=
prettifyDN
(
key
.
userID
(
0
).
id
());
}
for
(
uint
iMail
=
0
;
iMail
<
key
.
numU
serIDs
()
;
++
iMail
)
{
for
(
const
auto
&
uid
:
key
.
u
serIDs
())
{
// The following if /should/ always result in TRUE but we
// won't trust implicitly the plugin that gave us these data.
if
(
key
.
userID
(
iMail
)
.
email
())
{
QString
email
=
QString
::
fromUtf8
(
key
.
userID
(
iMail
)
.
email
());
if
(
uid
.
email
())
{
QString
email
=
QString
::
fromUtf8
(
uid
.
email
());
if
(
!
email
.
isEmpty
())
{
partMetaData
()
->
signerMailAddresses
.
append
(
email
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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