mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Use ()
for functions with no parameters
This commit is contained in:
parent
e0c4d14541
commit
b71ff372c7
@ -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<int>::iterator itr = fileDescriptors.begin(); itr != fileDescriptors.end(); ++itr)
|
||||
close(*itr);
|
||||
|
@ -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();
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -123,7 +123,7 @@ void processLeftRightModifiers(NSUInteger modifiers,
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
void initialiseKeyboardHelper(void)
|
||||
void initialiseKeyboardHelper()
|
||||
{
|
||||
if (isStateInitialized) return;
|
||||
|
||||
|
@ -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:
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include <filesystem>
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
std::filesystem::path resourcePath(void)
|
||||
std::filesystem::path resourcePath()
|
||||
{
|
||||
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user