Skip to content

Commit fd5a1b8

Browse files
Code format - (Clang-format)
1 parent 142cd90 commit fd5a1b8

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

source/updater.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919

2020
#ifdef _USE_UPDATER_
2121

22-
#include <wx/sstream.h>
23-
#include <wx/protocol/http.h>
24-
#include <cpr/cpr.h>
22+
#include <wx/sstream.h>
23+
#include <wx/protocol/http.h>
24+
#include <cpr/cpr.h>
2525

26-
#include "json.h"
27-
#include "updater.h"
26+
#include "json.h"
27+
#include "updater.h"
2828

2929
const wxEventType EVT_UPDATE_CHECK_FINISHED = wxNewEventType();
3030

@@ -48,9 +48,9 @@ UpdateConnectionThread::~UpdateConnectionThread() {
4848

4949
wxThread::ExitCode UpdateConnectionThread::Entry() {
5050
cpr::Response response = cpr::Get(
51-
cpr::Url{ __UPDATE_URL__ },
52-
cpr::Header{ {"User-Agent", "OTAcademy-RME-Updater"} },
53-
cpr::Timeout{ 10000 }
51+
cpr::Url { __UPDATE_URL__ },
52+
cpr::Header { { "User-Agent", "OTAcademy-RME-Updater" } },
53+
cpr::Timeout { 10000 }
5454
);
5555

5656
if (response.status_code != 200 || response.text.empty()) {

source/updater.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ extern const wxEventType EVT_UPDATE_CHECK_FINISHED;
3131
(wxObject*)nullptr \
3232
),
3333

34-
35-
3634
class UpdateConnectionThread : public DetachedThread {
3735
public:
3836
UpdateConnectionThread(wxEvtHandler* receiver);

0 commit comments

Comments
 (0)