diff options
author | Max Kellermann <max@duempel.org> | 2014-01-21 20:10:44 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-21 20:38:13 +0100 |
commit | 21209ff46bc4c5ffd43bf5abe1c8858ea2c9a721 (patch) | |
tree | dae32a3d6bcd6c60b11962842bdf3943d2e26ee3 | |
parent | 716bdc36fd5427c8e24589a00d90d47d99c81cd6 (diff) | |
download | mpd-21209ff46bc4c5ffd43bf5abe1c8858ea2c9a721.tar.gz mpd-21209ff46bc4c5ffd43bf5abe1c8858ea2c9a721.tar.xz mpd-21209ff46bc4c5ffd43bf5abe1c8858ea2c9a721.zip |
DetachedSong: use "default" copy/move constructors
Remove unnecessary explicit code.
-rw-r--r-- | src/DetachedSong.hxx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/DetachedSong.hxx b/src/DetachedSong.hxx index 2ef3cdf3e..bda9012d0 100644 --- a/src/DetachedSong.hxx +++ b/src/DetachedSong.hxx @@ -65,11 +65,7 @@ class DetachedSong { explicit DetachedSong(const LightSong &other); public: - explicit DetachedSong(const DetachedSong &other) - :uri(other.uri), - tag(other.tag), - mtime(other.mtime), - start_ms(other.start_ms), end_ms(other.end_ms) {} + explicit DetachedSong(const DetachedSong &other) = default; explicit DetachedSong(const char *_uri) :uri(_uri), @@ -89,11 +85,7 @@ public: tag(std::move(_tag)), mtime(0), start_ms(0), end_ms(0) {} - DetachedSong(DetachedSong &&other) - :uri(std::move(other.uri)), - tag(std::move(other.tag)), - mtime(other.mtime), - start_ms(other.start_ms), end_ms(other.end_ms) {} + DetachedSong(DetachedSong &&other) = default; gcc_pure const char *GetURI() const { |