Cleanup: add some _ prefixes.
[dcpomatic.git] / src / lib / send_notification_email_job.cc
index c4d5a65183ca93484e9b225628e46a59d836f3a1..2dd1f63f269f7558af4b40523c66331a257cf786 100644 (file)
 #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);
        }