X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fsend_notification_email_job.cc;h=2dd1f63f269f7558af4b40523c66331a257cf786;hb=4fd32ca36487a1130a58769daee9fae22057ffcb;hp=c4d5a65183ca93484e9b225628e46a59d836f3a1;hpb=689fa55d1529ad88449ca464e9107c4dcc54d1cb;p=dcpomatic.git 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 #include "i18n.h" using std::string; -using std::list; using std::shared_ptr; @@ -73,9 +71,7 @@ SendNotificationEmailJob::run () } set_progress_unknown (); - list 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); }