Skip to content

Commit

Permalink
tweak: fix implementation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Force67 committed May 11, 2024
1 parent 3b526e7 commit 9a3fb21
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 114 deletions.
6 changes: 3 additions & 3 deletions base/filesystem/path.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ Path::Path(const BufferType& path) : path_buf_(path) {
Normalize(path_buf_);
}

Path& Path::Append(const Path& other) {
path_buf_.push_back(BASE_PATH_SEP_MACRO);
path_buf_.append(other.path_buf_.c_str(), other.path_buf_.length());
Path& Path::Append(const Path& other) { //C://
path_buf_.push_back(BASE_PATH_SEP_MACRO); //C:////
path_buf_.append(other.path_buf_.c_str(), other.path_buf_.length()); //C:////other
Normalize(path_buf_); // ensure the path is normalized
return *this;
}
Expand Down
Loading

0 comments on commit 9a3fb21

Please sign in to comment.