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
a54f9ede
Commit
a54f9ede
authored
Jul 24, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SongFilter: use std::list::emplace_back()
parent
05fb6240
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
SongFilter.cxx
src/SongFilter.cxx
+3
-3
No files found.
src/SongFilter.cxx
View file @
a54f9ede
...
...
@@ -169,7 +169,7 @@ SongFilter::Item::MatchNN(const LightSong &song) const noexcept
SongFilter
::
SongFilter
(
unsigned
tag
,
const
char
*
value
,
bool
fold_case
)
{
items
.
push_back
(
Item
(
tag
,
value
,
fold_case
)
);
items
.
emplace_back
(
tag
,
value
,
fold_case
);
}
SongFilter
::~
SongFilter
()
...
...
@@ -208,9 +208,9 @@ SongFilter::Parse(const char *tag_string, const char *value, bool fold_case)
}
if
(
tag
==
LOCATE_TAG_MODIFIED_SINCE
)
items
.
push_back
(
Item
(
tag
,
ParseTimeStamp
(
value
)
));
items
.
emplace_back
(
tag
,
ParseTimeStamp
(
value
));
else
items
.
push_back
(
Item
(
tag
,
value
,
fold_case
)
);
items
.
emplace_back
(
tag
,
value
,
fold_case
);
}
void
...
...
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