X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffs%2Fpath.h;h=30fe683eabafff9f64b8841f8706ea4cde8be341;hb=178c4490f6dde563d80fb2bc483b5c9e8a538ea9;hp=82600dc35c28d5787f69b56f0af3b8b12af50f22;hpb=5a32939eb6e576c223e1be5f80226d9e628a2398;p=libs%2Fcore.git diff --git a/source/fs/path.h b/source/fs/path.h index 82600dc..30fe683 100644 --- a/source/fs/path.h +++ b/source/fs/path.h @@ -67,16 +67,13 @@ public: private: std::string path; - std::vector separators; + 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; }