X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Fpath.h;fp=source%2Ffs%2Fpath.h;h=9cc0dc243e32900bf869dc92df85a1ddea268251;hp=e0b593caf2099839d2f517deb2a3b2b0e4e89ffb;hb=122846f0881673770d88eff7d925ecf25c01b62e;hpb=b116e161e377da0e4e52f07745ecb2d22f962ae9 diff --git a/source/fs/path.h b/source/fs/path.h index e0b593c..9cc0dc2 100644 --- a/source/fs/path.h +++ b/source/fs/path.h @@ -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; }