X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffs%2Fpath.h;h=9cc0dc243e32900bf869dc92df85a1ddea268251;hb=122846f0881673770d88eff7d925ecf25c01b62e;hp=3cbfb16cf6e4052c57d223cd1fafd96b377b1c98;hpb=eca23d70c9e2c0519125f2fd92c212d3c94f7736;p=libs%2Fcore.git diff --git a/source/fs/path.h b/source/fs/path.h index 3cbfb16..9cc0dc2 100644 --- a/source/fs/path.h +++ b/source/fs/path.h @@ -10,7 +10,7 @@ namespace FS { enum { -#ifdef WIN32 +#ifdef _WIN32 DIRSEP = '\\' #else DIRSEP = '/' @@ -67,16 +67,13 @@ public: private: std::string path; - std::vector separators; + PositionArray separators; 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; }