Commit 21209ff4 authored by Max Kellermann's avatar Max Kellermann

DetachedSong: use "default" copy/move constructors

Remove unnecessary explicit code.
parent 716bdc36
...@@ -65,11 +65,7 @@ class DetachedSong { ...@@ -65,11 +65,7 @@ class DetachedSong {
explicit DetachedSong(const LightSong &other); explicit DetachedSong(const LightSong &other);
public: public:
explicit DetachedSong(const DetachedSong &other) explicit DetachedSong(const DetachedSong &other) = default;
:uri(other.uri),
tag(other.tag),
mtime(other.mtime),
start_ms(other.start_ms), end_ms(other.end_ms) {}
explicit DetachedSong(const char *_uri) explicit DetachedSong(const char *_uri)
:uri(_uri), :uri(_uri),
...@@ -89,11 +85,7 @@ public: ...@@ -89,11 +85,7 @@ public:
tag(std::move(_tag)), tag(std::move(_tag)),
mtime(0), start_ms(0), end_ms(0) {} mtime(0), start_ms(0), end_ms(0) {}
DetachedSong(DetachedSong &&other) DetachedSong(DetachedSong &&other) = default;
:uri(std::move(other.uri)),
tag(std::move(other.tag)),
mtime(other.mtime),
start_ms(other.start_ms), end_ms(other.end_ms) {}
gcc_pure gcc_pure
const char *GetURI() const { const char *GetURI() const {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment