Skip to content

Commit

Permalink
Merge pull request #101 from phprus/encoding
Browse files Browse the repository at this point in the history
Removed duplicate encoding conversion
  • Loading branch information
gulrak committed Feb 16, 2021
2 parents 799fcb4 + 011e039 commit 34fe1e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/ghc/filesystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2433,7 +2433,7 @@ inline path& path::operator/=(const Source& source)
template <class Source>
inline path& path::append(const Source& source)
{
return this->operator/=(path(detail::toUtf8(source)));
return this->operator/=(path(source));
}

template <>
Expand Down Expand Up @@ -2502,7 +2502,7 @@ template <class EcharT>
inline path::path_type_EcharT<EcharT>& path::operator+=(EcharT x)
{
std::basic_string<EcharT> part(1, x);
concat(detail::toUtf8(part));
concat(part);
return *this;
}

Expand Down

0 comments on commit 34fe1e3

Please sign in to comment.