diff --git a/src/SFML/Window/DRM/InputImplUDev.cpp b/src/SFML/Window/DRM/InputImplUDev.cpp index 1f5b0e1b..2cf047f0 100644 --- a/src/SFML/Window/DRM/InputImplUDev.cpp +++ b/src/SFML/Window/DRM/InputImplUDev.cpp @@ -79,7 +79,7 @@ namespace bool shiftDown() { return (keyMap[sf::Keyboard::LShift] || keyMap[sf::Keyboard::RShift]); } bool systemDown() { return (keyMap[sf::Keyboard::LSystem] || keyMap[sf::Keyboard::RSystem]); } - void uninitFileDescriptors(void) + void uninitFileDescriptors() { for (std::vector::iterator itr = fileDescriptors.begin(); itr != fileDescriptors.end(); ++itr) close(*itr); diff --git a/src/SFML/Window/OSX/SFKeyboardModifiersHelper.h b/src/SFML/Window/OSX/SFKeyboardModifiersHelper.h index a7010053..7074e55d 100644 --- a/src/SFML/Window/OSX/SFKeyboardModifiersHelper.h +++ b/src/SFML/Window/OSX/SFKeyboardModifiersHelper.h @@ -49,7 +49,7 @@ namespace sf { /// It needs to be called before any event, e.g. in the window constructor. /// //////////////////////////////////////////////////////////// -void initialiseKeyboardHelper(void); +void initialiseKeyboardHelper(); //////////////////////////////////////////////////////////// diff --git a/src/SFML/Window/OSX/SFKeyboardModifiersHelper.mm b/src/SFML/Window/OSX/SFKeyboardModifiersHelper.mm index 80494a4c..1c9a3350 100644 --- a/src/SFML/Window/OSX/SFKeyboardModifiersHelper.mm +++ b/src/SFML/Window/OSX/SFKeyboardModifiersHelper.mm @@ -123,7 +123,7 @@ void processLeftRightModifiers(NSUInteger modifiers, //////////////////////////////////////////////////////// -void initialiseKeyboardHelper(void) +void initialiseKeyboardHelper() { if (isStateInitialized) return; diff --git a/src/SFML/Window/OSX/WindowImplCocoa.hpp b/src/SFML/Window/OSX/WindowImplCocoa.hpp index ff568f97..f3c55f61 100644 --- a/src/SFML/Window/OSX/WindowImplCocoa.hpp +++ b/src/SFML/Window/OSX/WindowImplCocoa.hpp @@ -106,7 +106,7 @@ public: /// Send the event to SFML WindowImpl class. /// //////////////////////////////////////////////////////////// - void windowClosed(void); + void windowClosed(); //////////////////////////////////////////////////////////// /// \brief Window Resized Event - called by the cocoa window object @@ -124,7 +124,7 @@ public: /// Send the event to SFML WindowImpl class. /// //////////////////////////////////////////////////////////// - void windowLostFocus(void); + void windowLostFocus(); //////////////////////////////////////////////////////////// /// \brief Window Get Focus Event - called by the cocoa window object @@ -132,7 +132,7 @@ public: /// Send the event to SFML WindowImpl class. /// //////////////////////////////////////////////////////////// - void windowGainedFocus(void); + void windowGainedFocus(); //////////////////////////////////////////////////////////// /// \brief Mouse Down Event - called by the cocoa view object @@ -188,7 +188,7 @@ public: /// Send the event to SFML WindowImpl class. /// //////////////////////////////////////////////////////////// - void mouseMovedIn(void); + void mouseMovedIn(); //////////////////////////////////////////////////////////// /// \brief Mouse Out Event - called by the cocoa view object @@ -196,7 +196,7 @@ public: /// Send the event to SFML WindowImpl class. /// //////////////////////////////////////////////////////////// - void mouseMovedOut(void); + void mouseMovedOut(); //////////////////////////////////////////////////////////// /// \brief Key Down Event - called by the cocoa view object @@ -245,7 +245,7 @@ public: /// Also ensure NSApp is constructed. /// //////////////////////////////////////////////////////////// - static void setUpProcess(void); + static void setUpProcess(); public: diff --git a/src/SFML/Window/OSX/WindowImplCocoa.mm b/src/SFML/Window/OSX/WindowImplCocoa.mm index 57b8be56..6594b2c0 100644 --- a/src/SFML/Window/OSX/WindowImplCocoa.mm +++ b/src/SFML/Window/OSX/WindowImplCocoa.mm @@ -172,7 +172,7 @@ void WindowImplCocoa::applyContext(NSOpenGLContextRef context) const //////////////////////////////////////////////////////////// -void WindowImplCocoa::setUpProcess(void) +void WindowImplCocoa::setUpProcess() { AutoreleasePool pool; static bool isTheProcessSetAsApplication = false; @@ -209,7 +209,7 @@ void WindowImplCocoa::setUpProcess(void) //////////////////////////////////////////////////////////// -void WindowImplCocoa::windowClosed(void) +void WindowImplCocoa::windowClosed() { Event event; event.type = Event::Closed; @@ -232,7 +232,7 @@ void WindowImplCocoa::windowResized(const Vector2u& size) //////////////////////////////////////////////////////////// -void WindowImplCocoa::windowLostFocus(void) +void WindowImplCocoa::windowLostFocus() { if (!m_showCursor && [m_delegate isMouseInside]) showMouseCursor(); // Make sure the cursor is visible @@ -245,7 +245,7 @@ void WindowImplCocoa::windowLostFocus(void) //////////////////////////////////////////////////////////// -void WindowImplCocoa::windowGainedFocus(void) +void WindowImplCocoa::windowGainedFocus() { if (!m_showCursor && [m_delegate isMouseInside]) hideMouseCursor(); // Restore user's setting @@ -323,7 +323,7 @@ void WindowImplCocoa::mouseWheelScrolledAt(float deltaX, float deltaY, int x, in } //////////////////////////////////////////////////////////// -void WindowImplCocoa::mouseMovedIn(void) +void WindowImplCocoa::mouseMovedIn() { if (!m_showCursor) hideMouseCursor(); // Restore user's setting @@ -335,7 +335,7 @@ void WindowImplCocoa::mouseMovedIn(void) } //////////////////////////////////////////////////////////// -void WindowImplCocoa::mouseMovedOut(void) +void WindowImplCocoa::mouseMovedOut() { if (!m_showCursor) showMouseCursor(); // Make sure the cursor is visible diff --git a/tools/xcode/templates/SFML/SFML App.xctemplate/ResourcePath.hpp b/tools/xcode/templates/SFML/SFML App.xctemplate/ResourcePath.hpp index d748ed71..6d597668 100644 --- a/tools/xcode/templates/SFML/SFML App.xctemplate/ResourcePath.hpp +++ b/tools/xcode/templates/SFML/SFML App.xctemplate/ResourcePath.hpp @@ -38,6 +38,6 @@ /// with the main bundle or an empty string is there is no bundle. /// //////////////////////////////////////////////////////////// -std::filesystem::path resourcePath(void); +std::filesystem::path resourcePath(); #endif diff --git a/tools/xcode/templates/SFML/SFML App.xctemplate/ResourcePath.mm b/tools/xcode/templates/SFML/SFML App.xctemplate/ResourcePath.mm index c877eac0..3c1e0aba 100644 --- a/tools/xcode/templates/SFML/SFML App.xctemplate/ResourcePath.mm +++ b/tools/xcode/templates/SFML/SFML App.xctemplate/ResourcePath.mm @@ -31,7 +31,7 @@ #include //////////////////////////////////////////////////////////// -std::filesystem::path resourcePath(void) +std::filesystem::path resourcePath() { NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];