Skip to content

Commit

Permalink
[Minor] Remove bogus forward for non-forwarding reference
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Oct 6, 2021
1 parent 3fecc4e commit 4251918
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libmime/mime_string.hxx
Expand Up @@ -268,7 +268,7 @@ public:
basic_mime_string() noexcept : Allocator() {}
explicit basic_mime_string(const Allocator& alloc) noexcept : Allocator(alloc) {}
explicit basic_mime_string(filter_type &&filt, const Allocator& alloc = Allocator()) noexcept :
Allocator(alloc), filter_func(std::forward<filter_type>(filt)) {}
Allocator(alloc), filter_func(std::move(filt)) {}

basic_mime_string(const CharT* str, std::size_t sz, const Allocator& alloc = Allocator()) noexcept :
Allocator(alloc)
Expand Down Expand Up @@ -296,19 +296,19 @@ public:
filter_type &&filt,
const Allocator& alloc = Allocator()) noexcept :
Allocator(alloc),
filter_func(std::forward<filter_type>(filt))
filter_func(std::move(filt))
{
append_c_string_filtered(str, sz);
}

basic_mime_string(const storage_type &st,
filter_type &&filt,
const Allocator& alloc = Allocator()) noexcept :
basic_mime_string(st.data(), st.size(), std::forward<filter_type>(filt), alloc) {}
basic_mime_string(st.data(), st.size(), std::move(filt), alloc) {}
basic_mime_string(const view_type &st,
filter_type &&filt,
const Allocator& alloc = Allocator()) noexcept :
basic_mime_string(st.data(), st.size(), std::forward<filter_type>(filt), alloc) {}
basic_mime_string(st.data(), st.size(), std::move(filt), alloc) {}

constexpr auto size() const noexcept -> std::size_t {
return storage.size();
Expand Down

0 comments on commit 4251918

Please sign in to comment.