Fix some -Weffc++ warnings (part 1)

This commit is contained in:
Nekotekina 2021-03-30 18:31:46 +03:00
parent deacf05769
commit 2212a131ef
24 changed files with 162 additions and 56 deletions

View file

@ -17,18 +17,18 @@
struct vfs_directory
{
// Real path (empty if root or not exists)
std::string path;
std::string path{};
// Virtual subdirectories (vector because only vector allows incomplete types)
std::vector<std::pair<std::string, vfs_directory>> dirs;
std::vector<std::pair<std::string, vfs_directory>> dirs{};
};
struct vfs_manager
{
shared_mutex mutex;
shared_mutex mutex{};
// VFS root
vfs_directory root;
vfs_directory root{};
};
bool vfs::mount(std::string_view vpath, std::string_view path)