diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-05-18 22:21:33 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-05-18 22:21:33 +0200 |
| commit | 9f125fddff88bf62d36381f9d3f09e5240b033d5 (patch) | |
| tree | 586e3040791a634f58e3c0d04e7550490af732f6 /src/lib/emailer.h | |
| parent | c407bf65787162ea712595eecf9fbb409c7f0d1e (diff) | |
Cleanup: replace some list with vector.
Diffstat (limited to 'src/lib/emailer.h')
| -rw-r--r-- | src/lib/emailer.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/emailer.h b/src/lib/emailer.h index ef41b0320..78942ad1e 100644 --- a/src/lib/emailer.h +++ b/src/lib/emailer.h @@ -26,7 +26,7 @@ class Emailer { public: - Emailer (std::string from, std::list<std::string> to, std::string subject, std::string body); + Emailer(std::string from, std::vector<std::string> to, std::string subject, std::string body); void add_cc (std::string cc); void add_bcc (std::string bcc); @@ -46,7 +46,7 @@ public: return _email; } - static std::string address_list (std::list<std::string> addresses); + static std::string address_list(std::vector<std::string> addresses); private: @@ -54,11 +54,11 @@ private: static std::string encode_rfc1342 (std::string subject); std::string _from; - std::list<std::string> _to; + std::vector<std::string> _to; std::string _subject; std::string _body; - std::list<std::string> _cc; - std::list<std::string> _bcc; + std::vector<std::string> _cc; + std::vector<std::string> _bcc; struct Attachment { boost::filesystem::path file; @@ -66,7 +66,7 @@ private: std::string mime_type; }; - std::list<Attachment> _attachments; + std::vector<Attachment> _attachments; std::string _email; size_t _offset; std::string _notes; |
