logic: Fixed FilePath to not expand environment variables in constructor

This commit is contained in:
Eberhard Graether
2016-04-19 00:13:02 +02:00
parent a57f24b2b2
commit 7cd38f8e56
13 changed files with 92 additions and 73 deletions
+4 -5
View File
@@ -27,14 +27,13 @@ public:
FilePath relativeTo(const FilePath& other) const;
FilePath concat(const FilePath& other) const;
FilePath expandEnvironmentVariables() const;
std::string expandEnvironmentVariables(const std::string & path) const;
std::string str() const;
std::string fileName() const;
std::string extension() const;
FilePath withoutExtension() const;
FilePath replaceExtension(const std::string& extension);
FilePath replaceExtension(const std::string& extension) const;
bool hasExtension(const std::vector<std::string>& extensions) const;
bool operator==(const FilePath& other) const;
@@ -42,10 +41,10 @@ public:
bool operator<(const FilePath& other) const;
private:
void init();
boost::filesystem::path m_path;
bool m_exists;
mutable bool m_exists;
mutable bool m_checkedExists;
};
#endif // FILE_PATH_H