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
92a208aa
Commit
92a208aa
authored
Apr 23, 2017
by
Laurent Montel
😁
Browse files
Reserve elements
parent
9e7c596d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/contactstreemodel.cpp
View file @
92a208aa
...
@@ -131,6 +131,7 @@ QVariant ContactsTreeModel::entityData(const Item &item, int column, int role) c
...
@@ -131,6 +131,7 @@ QVariant ContactsTreeModel::entityData(const Item &item, int column, int role) c
QStringList
values
;
QStringList
values
;
const
KContacts
::
PhoneNumber
::
List
numbers
=
contact
.
phoneNumbers
();
const
KContacts
::
PhoneNumber
::
List
numbers
=
contact
.
phoneNumbers
();
values
.
reserve
(
numbers
.
count
());
for
(
const
KContacts
::
PhoneNumber
&
number
:
numbers
)
{
for
(
const
KContacts
::
PhoneNumber
&
number
:
numbers
)
{
values
+=
number
.
number
();
values
+=
number
.
number
();
}
}
...
...
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