summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-01-03 23:16:01 +0100
committerCarl Hetherington <cth@carlh.net>2026-01-03 23:16:01 +0100
commit39cd85a4e43f531466c0c863b736a3198693b0a0 (patch)
tree1c009ac92561676b5277cd106f4a7f27a1633f1f /src
parentb6979246954779d5a9d9ac0cbd55e93142ce6812 (diff)
White space: barco_alchemy_certificate_panel.{cc,h}
Diffstat (limited to 'src')
-rw-r--r--src/wx/barco_alchemy_certificate_panel.cc20
-rw-r--r--src/wx/barco_alchemy_certificate_panel.h8
2 files changed, 14 insertions, 14 deletions
diff --git a/src/wx/barco_alchemy_certificate_panel.cc b/src/wx/barco_alchemy_certificate_panel.cc
index 879097e48..2864f6324 100644
--- a/src/wx/barco_alchemy_certificate_panel.cc
+++ b/src/wx/barco_alchemy_certificate_panel.cc
@@ -35,8 +35,8 @@ using namespace boost::placeholders;
#endif
-BarcoAlchemyCertificatePanel::BarcoAlchemyCertificatePanel (DownloadCertificateDialog* dialog)
- : CredentialsDownloadCertificatePanel (
+BarcoAlchemyCertificatePanel::BarcoAlchemyCertificatePanel(DownloadCertificateDialog* dialog)
+ : CredentialsDownloadCertificatePanel(
dialog,
boost::bind(&Config::barco_username, Config::instance()),
boost::bind(&Config::set_barco_username, Config::instance(), _1),
@@ -50,15 +50,15 @@ BarcoAlchemyCertificatePanel::BarcoAlchemyCertificatePanel (DownloadCertificateD
}
bool
-BarcoAlchemyCertificatePanel::ready_to_download () const
+BarcoAlchemyCertificatePanel::ready_to_download() const
{
return CredentialsDownloadCertificatePanel::ready_to_download() && _serial->GetValue().Length() == 10;
}
void
-BarcoAlchemyCertificatePanel::do_download ()
+BarcoAlchemyCertificatePanel::do_download()
{
- string serial = wx_to_std (_serial->GetValue());
+ string serial = wx_to_std(_serial->GetValue());
trim(serial);
string url = fmt::format(
"sftp://{}:{}@certificates.barco.com/{}xxx/{}/Barco-ICMP.{}_cert.pem",
@@ -70,18 +70,18 @@ BarcoAlchemyCertificatePanel::do_download ()
);
trim(url);
- auto error = get_from_url (url, true, false, boost::bind (&DownloadCertificatePanel::load_certificate, this, _1, _2));
+ auto error = get_from_url(url, true, false, boost::bind(&DownloadCertificatePanel::load_certificate, this, _1, _2));
if (error) {
_dialog->message()->SetLabel({});
- error_dialog (this, std_to_wx(*error));
+ error_dialog(this, std_to_wx(*error));
} else {
- _dialog->message()->SetLabel (_("Certificate downloaded"));
- _dialog->setup_sensitivity ();
+ _dialog->message()->SetLabel(_("Certificate downloaded"));
+ _dialog->setup_sensitivity();
}
}
wxString
-BarcoAlchemyCertificatePanel::name () const
+BarcoAlchemyCertificatePanel::name() const
{
return _("Barco Alchemy");
}
diff --git a/src/wx/barco_alchemy_certificate_panel.h b/src/wx/barco_alchemy_certificate_panel.h
index addae0421..e9515d3e7 100644
--- a/src/wx/barco_alchemy_certificate_panel.h
+++ b/src/wx/barco_alchemy_certificate_panel.h
@@ -23,9 +23,9 @@
class BarcoAlchemyCertificatePanel : public CredentialsDownloadCertificatePanel
{
public:
- BarcoAlchemyCertificatePanel (DownloadCertificateDialog* dialog);
+ BarcoAlchemyCertificatePanel(DownloadCertificateDialog* dialog);
- bool ready_to_download () const override;
- void do_download () override;
- wxString name () const override;
+ bool ready_to_download() const override;
+ void do_download() override;
+ wxString name() const override;
};