Commit fc0508c0 authored by Max Kellermann's avatar Max Kellermann

db/simple/Directory: use C++11 initializers

parent 78ca5491
...@@ -39,10 +39,7 @@ ...@@ -39,10 +39,7 @@
Directory::Directory(std::string &&_path_utf8, Directory *_parent) Directory::Directory(std::string &&_path_utf8, Directory *_parent)
:parent(_parent), :parent(_parent),
mtime(0), path(std::move(_path_utf8))
inode(0), device(0),
path(std::move(_path_utf8)),
mounted_database(nullptr)
{ {
} }
......
...@@ -85,8 +85,8 @@ struct Directory { ...@@ -85,8 +85,8 @@ struct Directory {
PlaylistVector playlists; PlaylistVector playlists;
Directory *parent; Directory *parent;
time_t mtime; time_t mtime = 0;
unsigned inode, device; unsigned inode = 0, device = 0;
std::string path; std::string path;
...@@ -94,7 +94,7 @@ struct Directory { ...@@ -94,7 +94,7 @@ struct Directory {
* If this is not nullptr, then this directory does not really * If this is not nullptr, then this directory does not really
* exist, but is a mount point for another #Database. * exist, but is a mount point for another #Database.
*/ */
Database *mounted_database; Database *mounted_database = nullptr;
public: public:
Directory(std::string &&_path_utf8, Directory *_parent); Directory(std::string &&_path_utf8, Directory *_parent);
......
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