From 9c3fcd72d05e1877a7463dd87f0b0682c07f1111 Mon Sep 17 00:00:00 2001 From: Vittorio Romeo Date: Thu, 12 Sep 2024 16:30:45 +0200 Subject: [PATCH] Use gender-neutral language in comments --- examples/cocoa/CocoaAppDelegate.mm | 2 +- examples/voip/Client.cpp | 2 +- include/SFML/Network/SocketSelector.hpp | 2 +- src/SFML/Window/iOS/SFMain.mm | 14 +++++++------- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/cocoa/CocoaAppDelegate.mm b/examples/cocoa/CocoaAppDelegate.mm index ae4def03b..c2ab8d68e 100644 --- a/examples/cocoa/CocoaAppDelegate.mm +++ b/examples/cocoa/CocoaAppDelegate.mm @@ -120,7 +120,7 @@ struct SFMLmainWindow * periodically we need to add it to the two above runloop mode. * * The default mode allows timer firing while the user doesn't do anything - * while the second mode allows timer firing while he is using a slider + * while the second mode allows timer firing while they are using a slider * or a menu. */ diff --git a/examples/voip/Client.cpp b/examples/voip/Client.cpp index e1bacd291..128da5b17 100644 --- a/examples/voip/Client.cpp +++ b/examples/voip/Client.cpp @@ -107,7 +107,7 @@ private: //////////////////////////////////////////////////////////// /// Create a client, connect it to a running server and -/// start sending him audio data +/// start sending it audio data /// //////////////////////////////////////////////////////////// void doClient(unsigned short port) diff --git a/include/SFML/Network/SocketSelector.hpp b/include/SFML/Network/SocketSelector.hpp index dcd52c5bd..8b8f93948 100644 --- a/include/SFML/Network/SocketSelector.hpp +++ b/include/SFML/Network/SocketSelector.hpp @@ -237,7 +237,7 @@ private: /// if (listener.accept(client) == sf::Socket::Status::Done) /// { /// // Add the new client to the selector so that we will -/// // be notified when he sends something +/// // be notified when they send something /// selector.add(client); /// /// // Add the new client to the clients list diff --git a/src/SFML/Window/iOS/SFMain.mm b/src/SFML/Window/iOS/SFMain.mm index 4c0c1d73c..04dd5313a 100644 --- a/src/SFML/Window/iOS/SFMain.mm +++ b/src/SFML/Window/iOS/SFMain.mm @@ -30,20 +30,20 @@ // sfmlMain is called by the application delegate (SFAppDelegate). // -// Since we don't know which prototype of main the user -// defines, we declare both versions of sfmlMain, but with -// the 'weak' attribute (GCC extension) so that the +// Since we don't know which prototype of `main` the user +// defines, we declare both versions of `sfmlMain`, but with +// the `weak` attribute (GCC extension) so that the // user-declared one will replace SFML's one at linking stage. // -// If user defines main(argc, argv) then it will be called -// directly, if he defines main() then it will be called by +// If the user defines `main(argc, argv)` then it will be called +// directly, if they define `main()` then it will be called by // our placeholder. // -// The sfmlMain() version is never called, it is just defined +// The `sfmlMain()` version is never called, it is just defined // to avoid a linker error if the user directly defines the // version with arguments. // -// See the sfml-main module for the other half of this +// See the `sfml-main` module for the other half of this // initialization trick.