diff options
| author | Martin Ridgers <[email protected]> | 2021-11-03 11:02:35 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-11-03 12:35:40 +0100 |
| commit | 434489f3321364fdcbaa298e7cfb04b5da7563b0 (patch) | |
| tree | 1b2717bc45ac66ff6eb88df1a249fe1fdd8bd518 /zencore/include | |
| parent | Missing includes (diff) | |
| download | zen-434489f3321364fdcbaa298e7cfb04b5da7563b0.tar.xz zen-434489f3321364fdcbaa298e7cfb04b5da7563b0.zip | |
There is no "StringBuilderImpl<C>::operator << (const C*)".
This ended up calling operator << (bool) and appending "true" instead of
the expected path component.
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/filesystem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/include/zencore/filesystem.h b/zencore/include/zencore/filesystem.h index a90f55ead..ec857b33c 100644 --- a/zencore/include/zencore/filesystem.h +++ b/zencore/include/zencore/filesystem.h @@ -77,7 +77,7 @@ protected: public: void Append(const std::filesystem::path& Rhs) { Super::Append(Rhs.c_str()); } void operator /= (const std::filesystem::path& Rhs) { this->operator /= (Rhs.c_str()); }; - void operator /= (const CharType* Rhs) { AppendSeparator(); *this << (Rhs); } + void operator /= (const CharType* Rhs) { AppendSeparator(); Super::Append(Rhs); } operator ViewType () const { return ToView(); } std::basic_string_view<CharType> ToView() const { return std::basic_string_view<CharType>(Data(), Size()); } std::filesystem::path ToPath() const { return std::filesystem::path(ToView()); } |