X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffs%2Fpath.h;h=30fe683eabafff9f64b8841f8706ea4cde8be341;hb=d15b96b498d7cad51a0cb1dd949f70a04af246e9;hp=e0b593caf2099839d2f517deb2a3b2b0e4e89ffb;hpb=f24e7b96e76b63c9b9b8a6bce4c7a9db64276ea8;p=libs%2Fcore.git diff --git a/source/fs/path.h b/source/fs/path.h index e0b593c..30fe683 100644 --- a/source/fs/path.h +++ b/source/fs/path.h @@ -70,13 +70,10 @@ private: PositionArray separators; public: - Path(); + Path() = default; Path(const std::string &); - Path(const char *); -private: - void init(const std::string &); + Path(const char *p): Path(std::string(p)) { } -public: /// Returns the path as a string. const std::string &str() const { return path; }