From 889e974700115c782d2af4cb6c34fd3b555a0f14 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 13 Dec 2020 20:45:18 +0100 Subject: [PATCH] Fix typo in wxWebSessionDelegate name No real changes, just add the missing "a". --- include/wx/osx/webrequest_urlsession.h | 6 +++--- src/osx/webrequest_urlsession.mm | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/wx/osx/webrequest_urlsession.h b/include/wx/osx/webrequest_urlsession.h index 1e284885c1..06745fb9a4 100644 --- a/include/wx/osx/webrequest_urlsession.h +++ b/include/wx/osx/webrequest_urlsession.h @@ -14,7 +14,7 @@ DECLARE_WXCOCOA_OBJC_CLASS(NSURLSession); DECLARE_WXCOCOA_OBJC_CLASS(NSURLSessionTask); -DECLARE_WXCOCOA_OBJC_CLASS(wxWebSessionDelegte); +DECLARE_WXCOCOA_OBJC_CLASS(wxWebSessionDelegate); class wxWebSessionURLSession; class wxWebResponseURLSession; @@ -91,11 +91,11 @@ public: WX_NSURLSession GetSession() { return m_session; } - WX_wxWebSessionDelegte GetDelegate() { return m_delegate; } + WX_wxWebSessionDelegate GetDelegate() { return m_delegate; } private: WX_NSURLSession m_session; - WX_wxWebSessionDelegte m_delegate; + WX_wxWebSessionDelegate m_delegate; wxDECLARE_NO_COPY_CLASS(wxWebSessionURLSession); }; diff --git a/src/osx/webrequest_urlsession.mm b/src/osx/webrequest_urlsession.mm index 15af7ae38b..84cfcc643e 100644 --- a/src/osx/webrequest_urlsession.mm +++ b/src/osx/webrequest_urlsession.mm @@ -24,7 +24,7 @@ #include "wx/utils.h" #endif -@interface wxWebSessionDelegte : NSObject +@interface wxWebSessionDelegate : NSObject { wxWebSessionURLSession* m_session; NSMapTable* m_requests; @@ -32,7 +32,7 @@ @end -@implementation wxWebSessionDelegte +@implementation wxWebSessionDelegate - initWithSession:(wxWebSessionURLSession*)session { @@ -243,7 +243,7 @@ wxString wxWebResponseURLSession::GetSuggestedFileName() const wxWebSessionURLSession::wxWebSessionURLSession() { - m_delegate = [[wxWebSessionDelegte alloc] initWithSession:this]; + m_delegate = [[wxWebSessionDelegate alloc] initWithSession:this]; m_session = [[NSURLSession sessionWithConfiguration: [NSURLSessionConfiguration defaultSessionConfiguration]