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
a2b24cb5
Commit
a2b24cb5
authored
Jul 24, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SongFilter: pass std::string&& to Item constructor
parent
a54f9ede
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
SongFilter.cxx
src/SongFilter.cxx
+2
-2
SongFilter.hxx
src/SongFilter.hxx
+1
-2
No files found.
src/SongFilter.cxx
View file @
a2b24cb5
...
...
@@ -60,9 +60,9 @@ locate_parse_type(const char *str) noexcept
return
tag_name_parse_i
(
str
);
}
SongFilter
::
Item
::
Item
(
unsigned
_tag
,
const
char
*
_value
,
bool
_fold_case
)
SongFilter
::
Item
::
Item
(
unsigned
_tag
,
std
::
string
&&
_value
,
bool
_fold_case
)
:
tag
(
_tag
),
value
(
_value
),
value
(
std
::
move
(
_value
)
),
fold_case
(
_fold_case
?
IcuCompare
(
value
.
c_str
())
:
IcuCompare
())
{
}
...
...
src/SongFilter.hxx
View file @
a2b24cb5
...
...
@@ -67,8 +67,7 @@ public:
std
::
chrono
::
system_clock
::
time_point
time
;
public
:
gcc_nonnull
(
3
)
Item
(
unsigned
tag
,
const
char
*
value
,
bool
fold_case
=
false
);
Item
(
unsigned
tag
,
std
::
string
&&
_value
,
bool
fold_case
=
false
);
Item
(
unsigned
tag
,
std
::
chrono
::
system_clock
::
time_point
time
);
unsigned
GetTag
()
const
{
...
...
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