summaryrefslogtreecommitdiff
path: root/src/db/plugins/simple/Song.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-09-04 11:20:18 +0200
committerMax Kellermann <max@musicpd.org>2019-09-04 12:04:35 +0200
commit77756919659b32fc0575b79d045ed570db6bdfb3 (patch)
treee9fe224b6824742dca9c7b0a17c403ba56f6a953 /src/db/plugins/simple/Song.hxx
parenta727150c8da58b7dafdb5135b907a90dc4187e14 (diff)
db/simple/Song: rename "uri" to "filename"
This attribute is not a URI; it is just the filename without its parent directory path. To avoid confusion, let's rename it to "filename", leaving the struct without a "uri" attribute.
Diffstat (limited to 'src/db/plugins/simple/Song.hxx')
-rw-r--r--src/db/plugins/simple/Song.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/db/plugins/simple/Song.hxx b/src/db/plugins/simple/Song.hxx
index 8261748a8..17443fd45 100644
--- a/src/db/plugins/simple/Song.hxx
+++ b/src/db/plugins/simple/Song.hxx
@@ -91,11 +91,11 @@ struct Song {
/**
* The file name.
*/
- std::string uri;
+ std::string filename;
- template<typename U>
- Song(U &&_uri, Directory &_parent) noexcept
- :parent(_parent), uri(std::forward<U>(_uri)) {}
+ template<typename F>
+ Song(F &&_filename, Directory &_parent) noexcept
+ :parent(_parent), filename(std::forward<F>(_filename)) {}
Song(DetachedSong &&other, Directory &_parent) noexcept;