Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
424f478c
Commit
424f478c
authored
Dec 03, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TagBuilder: reserve items in move constructor
parent
5e0c2720
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
TagBuilder.cxx
src/tag/TagBuilder.cxx
+1
-0
No files found.
src/tag/TagBuilder.cxx
View file @
424f478c
...
...
@@ -46,6 +46,7 @@ TagBuilder::TagBuilder(Tag &&other)
/* move all TagItem pointers from the Tag object; we don't
need to contact the tag pool, because all we do is move
references */
items
.
reserve
(
other
.
num_items
);
std
::
copy_n
(
other
.
items
,
other
.
num_items
,
std
::
back_inserter
(
items
));
/* discard the pointers from the Tag object */
...
...
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