diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-10-06 09:54:49 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-10-06 09:54:49 +0100 |
commit | 4251918a1ab758f545bd1d5dc5e298016e1b6bca (patch) | |
tree | 1e76db9d44d86bb649fff2a3c70f0548482aff73 | |
parent | 3fecc4efe430e359feaee5cb7745e60c11581e63 (diff) | |
download | rspamd-4251918a1ab758f545bd1d5dc5e298016e1b6bca.tar.gz rspamd-4251918a1ab758f545bd1d5dc5e298016e1b6bca.zip |
[Minor] Remove bogus forward for non-forwarding reference
-rw-r--r-- | src/libmime/mime_string.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libmime/mime_string.hxx b/src/libmime/mime_string.hxx index c6041a778..94bdafb02 100644 --- a/src/libmime/mime_string.hxx +++ b/src/libmime/mime_string.hxx @@ -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) @@ -296,7 +296,7 @@ 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); } @@ -304,11 +304,11 @@ public: 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(); |