summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-09-30 21:00:31 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-09-30 21:00:31 +0100
commitaba766f487640bd96e3d2b5fce59240cf14246fa (patch)
treeddc9438e15cd3da1fb39e7e97e9fd3578db7ab4b /src
parentc61a8e0d47b45582888f402b01944a53397dbe48 (diff)
downloadrspamd-aba766f487640bd96e3d2b5fce59240cf14246fa.tar.gz
rspamd-aba766f487640bd96e3d2b5fce59240cf14246fa.zip
[Minor] Allow to construct an empty string with a filter
Diffstat (limited to 'src')
-rw-r--r--src/libmime/mime_string.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmime/mime_string.hxx b/src/libmime/mime_string.hxx
index 63522e8a0..259788cd5 100644
--- a/src/libmime/mime_string.hxx
+++ b/src/libmime/mime_string.hxx
@@ -265,6 +265,8 @@ public:
/* Ctors */
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)) {}
basic_mime_string(const CharT* str, std::size_t sz, const Allocator& alloc = Allocator()) noexcept :
Allocator(alloc)