Merge pull request #101 from phprus/encoding

Removed duplicate encoding conversion
This commit is contained in:
gulrak 2021-02-16 08:21:19 +01:00 committed by GitHub
commit 34fe1e314a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 <>
@ -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;
}