diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-12-17 19:01:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-17 19:01:04 -0500 |
commit | b8c50276869aa98bc3cf2622a18c08cf1fb66315 (patch) | |
tree | d6771c87088db094492daf2ed39829cf5efc5873 /src/common/fs/path_util.h | |
parent | e3578966742aa1e4fd368de35aecce2a0bf45296 (diff) | |
parent | 09e8fb75ce0b16acc3fa21379c4b3e69d43c520b (diff) |
Merge pull request #12389 from liamwhite/string-copy
path_util: copy output for GetParentPath
Diffstat (limited to 'src/common/fs/path_util.h')
-rw-r--r-- | src/common/fs/path_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/fs/path_util.h b/src/common/fs/path_util.h index 23c8b1359..59301e7ed 100644 --- a/src/common/fs/path_util.h +++ b/src/common/fs/path_util.h @@ -302,7 +302,7 @@ enum class DirectorySeparator { DirectorySeparator directory_separator = DirectorySeparator::ForwardSlash); // Gets all of the text up to the last '/' or '\' in the path. -[[nodiscard]] std::string_view GetParentPath(std::string_view path); +[[nodiscard]] std::string GetParentPath(std::string_view path); // Gets all of the text after the first '/' or '\' in the path. [[nodiscard]] std::string_view GetPathWithoutTop(std::string_view path); |