X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fsend_problem_report_job.cc;h=7f60a3fdc2e8e91239a2ff92753a31e621af3ecd;hb=8fedaaa75c4586a4cc7ffb393bd71d1fdb091dc8;hp=143baaa1bdeb89e576319304956ab0df9952e863;hpb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26;p=dcpomatic.git diff --git a/src/lib/send_problem_report_job.cc b/src/lib/send_problem_report_job.cc index 143baaa1b..7f60a3fdc 100644 --- a/src/lib/send_problem_report_job.cc +++ b/src/lib/send_problem_report_job.cc @@ -28,7 +28,6 @@ #include "emailer.h" #include "environment_info.h" #include -#include #include "i18n.h" @@ -81,9 +80,9 @@ SendProblemReportJob::run () string body = _summary + "\n\n"; - body += "Version: " + string (dcpomatic_version) + " " + string (dcpomatic_git_commit) + "\n\n"; + body += "Version: " + string(dcpomatic_version) + " " + string(dcpomatic_git_commit) + "\n\n"; - BOOST_FOREACH (string i, environment_info ()) { + for (auto i: environment_info ()) { body += i + "\n"; } @@ -102,11 +101,8 @@ SendProblemReportJob::run () body += "---<8----\n"; } - list to; - to.push_back ("carl@dcpomatic.com"); - - Emailer emailer (_from, to, "DCP-o-matic problem report", body); - emailer.send ("main.carlh.net", 2525, EMAIL_PROTOCOL_STARTTLS); + Emailer emailer (_from, {"carl@dcpomatic.com"}, "DCP-o-matic problem report", body); + emailer.send ("main.carlh.net", 2525, EmailProtocol::STARTTLS); set_progress (1); set_state (FINISHED_OK);