summaryrefslogtreecommitdiff
path: root/src/lib/send_notification_email_job.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-05-18 22:21:33 +0200
committerCarl Hetherington <cth@carlh.net>2023-05-18 22:21:33 +0200
commit9f125fddff88bf62d36381f9d3f09e5240b033d5 (patch)
tree586e3040791a634f58e3c0d04e7550490af732f6 /src/lib/send_notification_email_job.cc
parentc407bf65787162ea712595eecf9fbb409c7f0d1e (diff)
Cleanup: replace some list with vector.
Diffstat (limited to 'src/lib/send_notification_email_job.cc')
-rw-r--r--src/lib/send_notification_email_job.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/send_notification_email_job.cc b/src/lib/send_notification_email_job.cc
index c4d5a6518..2dd1f63f2 100644
--- a/src/lib/send_notification_email_job.cc
+++ b/src/lib/send_notification_email_job.cc
@@ -24,13 +24,11 @@
#include "config.h"
#include "emailer.h"
#include "compose.hpp"
-#include <list>
#include "i18n.h"
using std::string;
-using std::list;
using std::shared_ptr;
@@ -73,9 +71,7 @@ SendNotificationEmailJob::run ()
}
set_progress_unknown ();
- list<string> to;
- to.push_back (config->notification_to());
- Emailer email (config->notification_from(), to, config->notification_subject(), _body);
+ Emailer email (config->notification_from(), { config->notification_to() }, config->notification_subject(), _body);
for (auto i: config->notification_cc()) {
email.add_cc (i);
}