diff --git a/src/Cafe/Filesystem/FSPath.cpp b/src/Cafe/Filesystem/FSPath.cpp index 80df5a9d..c1f603b5 100644 --- a/src/Cafe/Filesystem/FSPath.cpp +++ b/src/Cafe/Filesystem/FSPath.cpp @@ -14,13 +14,13 @@ FSPath& FSPath::operator/ (const FSPath & rhs) return *this; } -FSPath& FSPath::operator/= (const FSPath & other) +FSPath& FSPath::operator/= (const FSPath & rhs) { // todo: implement caching. // explore directories recursively and find the matching cases. - fs::path relPath = other.relative_path(); - fs::path correctedPath = empty() ? other.root_path() : *this; + fs::path relPath = rhs.relative_path(); + fs::path correctedPath = empty() ? rhs.root_path() : *this; // helper function to convert a path's alphabet characters to lowercase. auto static lowercase_path = [](fs::path const & path) diff --git a/src/Cafe/Filesystem/FSPath.h b/src/Cafe/Filesystem/FSPath.h index b5807f2c..bbccaa32 100644 --- a/src/Cafe/Filesystem/FSPath.h +++ b/src/Cafe/Filesystem/FSPath.h @@ -14,7 +14,7 @@ class FSPath : public fs::path { { return FSPath{} / FSPath{input}; } - FSPath& operator/= (const FSPath & other); + FSPath& operator/= (const FSPath & rhs); FSPath& operator/ (const FSPath & rhs); #endif };