File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
2929const wxEventType EVT_UPDATE_CHECK_FINISHED = wxNewEventType();
3030
@@ -48,9 +48,9 @@ UpdateConnectionThread::~UpdateConnectionThread() {
4848
4949wxThread::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 ()) {
Original file line number Diff line number Diff line change @@ -31,8 +31,6 @@ extern const wxEventType EVT_UPDATE_CHECK_FINISHED;
3131 (wxObject*)nullptr \
3232 ),
3333
34-
35-
3634class UpdateConnectionThread : public DetachedThread {
3735public:
3836 UpdateConnectionThread (wxEvtHandler* receiver);
You can’t perform that action at this time.
0 commit comments