Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Unmaintained
KDE Pim Libraries
Commits
21af0c9c
Commit
21af0c9c
authored
Dec 10, 2014
by
Milian Wolff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reserve space to reduce temporary allocations.
parent
c24c2a59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
kmime/kmime_util.cpp
kmime/kmime_util.cpp
+2
-0
No files found.
kmime/kmime_util.cpp
View file @
21af0c9c
...
...
@@ -205,7 +205,9 @@ QString decodeRFC2047String( const QByteArray &src, QByteArray &usedCS,
const
QByteArray
&
defaultCS
,
bool
forceCS
)
{
QByteArray
result
;
result
.
reserve
(
64
);
QByteArray
spaceBuffer
;
spaceBuffer
.
reserve
(
64
);
const
char
*
scursor
=
src
.
constData
();
const
char
*
send
=
scursor
+
src
.
length
();
bool
onlySpacesSinceLastWord
=
false
;
...
...
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