]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/path.h
Mark constructors and destructors as default where appropriate
[libs/core.git] / source / fs / path.h
index 3cbfb16cf6e4052c57d223cd1fafd96b377b1c98..30fe683eabafff9f64b8841f8706ea4cde8be341 100644 (file)
@@ -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<std::string::size_type> 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; }