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
0b774df3
Commit
0b774df3
authored
Aug 26, 2021
by
Rosen Penev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent use after move
These should be equivalent anyway. Signed-off-by:
Rosen Penev
<
rosenp@gmail.com
>
parent
9ca64d5f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
Directory.cxx
src/db/plugins/upnp/Directory.cxx
+1
-1
Control.cxx
src/decoder/Control.cxx
+1
-1
CueParser.cxx
src/playlist/cue/CueParser.cxx
+1
-5
No files found.
src/db/plugins/upnp/Directory.cxx
View file @
0b774df3
...
...
@@ -192,7 +192,7 @@ protected:
if
(
tag_type
==
TAG_TITLE
)
object
.
name
=
TitleToPathSegment
(
std
::
move
(
value
));
value
.
clear
()
;
value
=
{}
;
tag_type
=
TAG_NUM_OF_ITEM_TYPES
;
return
;
}
...
...
src/decoder/Control.cxx
View file @
0b774df3
...
...
@@ -170,5 +170,5 @@ void
DecoderControl
::
CycleMixRamp
()
noexcept
{
previous_mix_ramp
=
std
::
move
(
mix_ramp
);
mix_ramp
.
Clear
()
;
mix_ramp
=
{}
;
}
src/playlist/cue/CueParser.cxx
View file @
0b774df3
...
...
@@ -171,7 +171,6 @@ CueParser::Commit() noexcept
finished
=
std
::
move
(
previous
);
previous
=
std
::
move
(
current
);
current
.
reset
();
}
void
...
...
@@ -302,10 +301,7 @@ CueParser::Get() noexcept
assert
(
current
==
nullptr
);
finished
=
std
::
move
(
previous
);
previous
.
reset
();
}
auto
result
=
std
::
move
(
finished
);
finished
.
reset
();
return
result
;
return
std
::
move
(
finished
);
}
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