X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fpath.h;h=e560d3f96c4b3e1ae5b718f5d4a724e4fc8a57c2;hb=fa77438b62207466c48620604c8cc34931080936;hp=751c0e3d2f66a3580e590402322d4a6aa1fb6af6;hpb=9c48f72f02e3112f4193cc8b3f12b135aa483de1;p=libs%2Fcore.git diff --git a/source/path.h b/source/path.h index 751c0e3..e560d3f 100644 --- a/source/path.h +++ b/source/path.h @@ -17,9 +17,9 @@ namespace FS { enum { #ifdef WIN32 - DIRSEP='\\' + DIRSEP = '\\' #else - DIRSEP='/' + DIRSEP = '/' #endif }; @@ -37,7 +37,7 @@ public: private: const Path &path; - unsigned start,end; + std::string::size_type start,end; Iterator(const Path &); public: @@ -67,7 +67,7 @@ public: bool is_absolute() const; /// Extracts a range of components from the path. - Path subpath(unsigned start, unsigned count=static_cast(-1)) const; + Path subpath(unsigned start, unsigned count = static_cast(-1)) const; /// Concatenates this path with another one, with usual filesystem semantics Path operator/(const Path &p) const;