From 378da09c8419f4486ea891fc0a3188d68e4f41ad Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 27 Dec 2023 02:56:20 +0100 Subject: [PATCH] Fix typo in "receive" occurring a few times This is just too annoying to see. --- src/x11/clipbrd.cpp | 6 +++--- tests/net/webrequest.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/x11/clipbrd.cpp b/src/x11/clipbrd.cpp index f20d4a5782..3a13033fc8 100644 --- a/src/x11/clipbrd.cpp +++ b/src/x11/clipbrd.cpp @@ -38,7 +38,7 @@ typedef wxScopedArray wxDataFormatScopedArray; // copied in the src program. It will send an paste request, in x11, it will // send an event which type is SelectionRequest by XConvertSelection, then X // server will try to find a program that could handle SelectionRequest event. -// In src program, when recieve a SelectionRequest event, it will set the +// In src program, when receive a SelectionRequest event, it will set the // copied data to dest program's window property. More specific, the dest // program is called "requestor", the src program could find which window ask // for the data, through the event member : "event.xselection.requestor". @@ -117,7 +117,7 @@ typedef wxScopedArray wxDataFormatScopedArray; // If we want copy data to clipboard. We must own the XA_CLIPBOARD selection // through XSetSelectionOwner(). -// But the data is still host by src program. When src program recieve +// But the data is still host by src program. When src program receive // SelectionRequest event type. It set the data to requestor's window // property, through XCHangeProperty(xdisplay, requestor, ...). The second // parameter is the requests window. Requestor could find through XEvent. @@ -135,7 +135,7 @@ typedef wxScopedArray wxDataFormatScopedArray; // ----------------- // In SetData, due to x11 program does not send data to a gloabal clipboard, -// so the program hold the data, when the program recieve a SelectionRequest +// so the program hold the data, when the program receive a SelectionRequest // event, the program set the data to requestor's window property. So in the // implementation of SetData, it hold the wxDataObject that need to be paste. // And set XA_CLIPBOARD selection owner. diff --git a/tests/net/webrequest.cpp b/tests/net/webrequest.cpp index 129c93aa13..8ddeecf89c 100644 --- a/tests/net/webrequest.cpp +++ b/tests/net/webrequest.cpp @@ -127,7 +127,7 @@ public: void OnData(wxWebRequestEvent& evt) { - // Count all bytes recieved via data event for Storage_None + // Count all bytes received via data event for Storage_None dataSize += evt.GetDataSize(); }