]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/path.h
Use default member initializers and constructor delegation
[libs/core.git] / source / fs / path.h
index e0b593caf2099839d2f517deb2a3b2b0e4e89ffb..9cc0dc243e32900bf869dc92df85a1ddea268251 100644 (file)
@@ -72,11 +72,8 @@ private:
 public:
        Path();
        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; }