Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
af09244d
Commit
af09244d
authored
Sep 14, 2017
by
Ronan
Browse files
fix(CpimParser): simplify code on message headers creation
parent
0102ef79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
src/chat/cpim/parser/cpim-parser.cpp
src/chat/cpim/parser/cpim-parser.cpp
+2
-5
No files found.
src/chat/cpim/parser/cpim-parser.cpp
View file @
af09244d
...
...
@@ -189,16 +189,13 @@ namespace Cpim {
// Add message headers.
if
(
mHeaders
->
size
()
>
2
)
{
list
<
shared_ptr
<
ListHeaderNode
>>::
iterator
it
=
mHeaders
->
begin
();
std
::
advance
(
it
,
1
);
shared_ptr
<
ListHeaderNode
>
messageHeaders
=
*
it
;
for
(
const
auto
&
headerNode
:
*
messageHeaders
)
{
for
(
const
auto
&
headerNode
:
**
(
++
mHeaders
->
cbegin
()))
{
const
shared_ptr
<
const
Header
>
header
=
headerNode
->
createHeader
();
if
(
!
header
||
!
message
->
addMessageHeader
(
*
header
))
return
nullptr
;
}
}
// Add content headers.
for
(
const
auto
&
headerNode
:
*
mHeaders
->
back
())
{
const
shared_ptr
<
const
Header
>
header
=
headerNode
->
createHeader
();
...
...
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