From 7cd939aa3d0b87858c74e5832d1aa812b2271459 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 19 Mar 2021 10:36:32 +0100 Subject: [PATCH] White space / C++11 tidying. --- src/wx/job_view.cc | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/wx/job_view.cc b/src/wx/job_view.cc index 52c975bee..2754948ae 100644 --- a/src/wx/job_view.cc +++ b/src/wx/job_view.cc @@ -18,6 +18,7 @@ */ + #include "job_view.h" #include "wx_util.h" #include "message_dialog.h" @@ -34,12 +35,14 @@ #include #include + using std::string; using std::min; using std::shared_ptr; using boost::bind; using std::dynamic_pointer_cast; + JobView::JobView (shared_ptr job, wxWindow* parent, wxWindow* container, wxFlexGridSizer* table) : _job (job) , _table (table) @@ -50,6 +53,7 @@ JobView::JobView (shared_ptr job, wxWindow* parent, wxWindow* container, wx } + void JobView::setup () { @@ -95,6 +99,7 @@ JobView::setup () _table->Layout (); } + void JobView::maybe_pulse () { @@ -103,6 +108,7 @@ JobView::maybe_pulse () } } + void JobView::progress () { @@ -110,7 +116,7 @@ JobView::progress () if (!_job->sub_name().empty ()) { whole += _job->sub_name() + " "; } - string s = _job->status (); + auto s = _job->status (); /* Watch out for < > in the error string */ boost::algorithm::replace_all (s, "<", "<"); boost::algorithm::replace_all (s, ">", ">"); @@ -128,6 +134,7 @@ JobView::progress () } } + void JobView::finished () { @@ -162,14 +169,16 @@ JobView::finished () } } + void JobView::details_clicked (wxCommandEvent &) { - string s = _job->error_summary(); + auto s = _job->error_summary(); s[0] = toupper (s[0]); error_dialog (_parent, std_to_wx(s), std_to_wx(_job->error_details())); } + void JobView::cancel_clicked (wxCommandEvent &) { @@ -178,6 +187,7 @@ JobView::cancel_clicked (wxCommandEvent &) } } + void JobView::insert (int pos) { @@ -186,6 +196,7 @@ JobView::insert (int pos) _table->Layout (); } + void JobView::detach () { @@ -193,6 +204,7 @@ JobView::detach () _table->Detach (_controls); } + void JobView::notify_clicked () { -- 2.30.2