diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-12-20 21:00:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-12-20 21:00:56 +0100 |
| commit | f3848d724f0d193b09fea26138fa38f4a3fd321c (patch) | |
| tree | db30081b1176fc7e6b423f6b9ab725f50036d995 /src/lib | |
| parent | 0b6888a2f7a4675f5f80e7788841e2201a65dbe0 (diff) | |
White space: send_problem_report_job.{cc,h}
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/send_problem_report_job.cc | 36 | ||||
| -rw-r--r-- | src/lib/send_problem_report_job.h | 12 |
2 files changed, 24 insertions, 24 deletions
diff --git a/src/lib/send_problem_report_job.cc b/src/lib/send_problem_report_job.cc index 5d62bb4d1..547faab93 100644 --- a/src/lib/send_problem_report_job.cc +++ b/src/lib/send_problem_report_job.cc @@ -42,27 +42,27 @@ using std::string; * @param from Email address to use for From: * @param summary Summary of the problem. */ -SendProblemReportJob::SendProblemReportJob ( +SendProblemReportJob::SendProblemReportJob( shared_ptr<const Film> film, string from, string summary ) - : Job (film) - , _from (from) - , _summary (summary) + : Job(film) + , _from(from) + , _summary(summary) { } -SendProblemReportJob::~SendProblemReportJob () +SendProblemReportJob::~SendProblemReportJob() { - stop_thread (); + stop_thread(); } string -SendProblemReportJob::name () const +SendProblemReportJob::name() const { if (!_film) { return _("Email problem report"); @@ -73,23 +73,23 @@ SendProblemReportJob::name () const string -SendProblemReportJob::json_name () const +SendProblemReportJob::json_name() const { return N_("send_problem_report"); } void -SendProblemReportJob::run () +SendProblemReportJob::run() { - sub (_("Sending email")); - set_progress_unknown (); + sub(_("Sending email")); + set_progress_unknown(); string body = _summary + "\n\n"; body += "Version: " + string(dcpomatic_version) + " " + string(dcpomatic_git_commit) + "\n\n"; - for (auto i: environment_info ()) { + for (auto i: environment_info()) { body += i + "\n"; } @@ -98,10 +98,10 @@ SendProblemReportJob::run () if (_film) { body += "log head and tail:\n"; body += "---<8----\n"; - body += _film->log()->head_and_tail (4096); + body += _film->log()->head_and_tail(4096); body += "---<8----\n\n"; - add_file (body, "ffprobe.log"); + add_file(body, "ffprobe.log"); body += "---<8----\n"; body += _film->metadata()->write_to_string_formatted("UTF-8"); @@ -111,18 +111,18 @@ SendProblemReportJob::run () Email email(_from, {"report@dcpomatic.com"}, variant::insert_dcpomatic("{} problem report"), body); email.send("main.carlh.net", 2525, EmailProtocol::STARTTLS); - set_progress (1); - set_state (FINISHED_OK); + set_progress(1); + set_state(FINISHED_OK); } void -SendProblemReportJob::add_file (string& body, boost::filesystem::path file) const +SendProblemReportJob::add_file(string& body, boost::filesystem::path file) const { body += file.string() + ":\n"; body += "---<8----\n"; try { - body += dcp::file_to_string (_film->file(file)); + body += dcp::file_to_string(_film->file(file)); } catch (...) { body += "[could not be read]\n"; } diff --git a/src/lib/send_problem_report_job.h b/src/lib/send_problem_report_job.h index 5310010ae..ab4bfade4 100644 --- a/src/lib/send_problem_report_job.h +++ b/src/lib/send_problem_report_job.h @@ -27,20 +27,20 @@ class SendProblemReportJob : public Job { public: - SendProblemReportJob ( + SendProblemReportJob( std::shared_ptr<const Film> film, std::string from, std::string summary ); - ~SendProblemReportJob (); + ~SendProblemReportJob(); - std::string name () const override; - std::string json_name () const override; - void run () override; + std::string name() const override; + std::string json_name() const override; + void run() override; private: - void add_file (std::string& body, boost::filesystem::path file) const; + void add_file(std::string& body, boost::filesystem::path file) const; std::string _from; std::string _summary; |
