mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-25 05:03:36 +01:00
Remove unnecessary (void) parameters from C++ implementations
This commit is contained in:
1 parent
e2e5ef1d31
commit
55fe064af4
23 files changed
+25
-25
No files matched your search
@@ -38,7 +38,7 @@ void sfListener_setGlobalVolume(float volume)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
float sfListener_getGlobalVolume(void)
|
||||
float sfListener_getGlobalVolume()
|
||||
{
|
||||
return sf::Listener::getGlobalVolume();
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfSoundBufferRecorder* sfSoundBufferRecorder_create(void)
|
||||
sfSoundBufferRecorder* sfSoundBufferRecorder_create()
|
||||
{
|
||||
return new sfSoundBufferRecorder;
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ unsigned int sfSoundRecorder_getSampleRate(const sfSoundRecorder* soundRecorder)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
bool sfSoundRecorder_isAvailable(void)
|
||||
bool sfSoundRecorder_isAvailable()
|
||||
{
|
||||
return sf::SoundRecorder::isAvailable();
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfCircleShape* sfCircleShape_create(void)
|
||||
sfCircleShape* sfCircleShape_create()
|
||||
{
|
||||
sfCircleShape* shape = new sfCircleShape;
|
||||
shape->Texture = nullptr;
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfConvexShape* sfConvexShape_create(void)
|
||||
sfConvexShape* sfConvexShape_create()
|
||||
{
|
||||
return new sfConvexShape;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfRectangleShape* sfRectangleShape_create(void)
|
||||
sfRectangleShape* sfRectangleShape_create()
|
||||
{
|
||||
return new sfRectangleShape;
|
||||
}
|
||||
|
||||
@@ -389,14 +389,14 @@ void sfShader_bind(const sfShader* shader)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
bool sfShader_isAvailable(void)
|
||||
bool sfShader_isAvailable()
|
||||
{
|
||||
return sf::Shader::isAvailable();
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
bool sfShader_isGeometryAvailable(void)
|
||||
bool sfShader_isGeometryAvailable()
|
||||
{
|
||||
return sf::Shader::isGeometryAvailable();
|
||||
}
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfTransformable* sfTransformable_create(void)
|
||||
sfTransformable* sfTransformable_create()
|
||||
{
|
||||
sfTransformable* transformable = new sfTransformable;
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfVertexArray* sfVertexArray_create(void)
|
||||
sfVertexArray* sfVertexArray_create()
|
||||
{
|
||||
return new sfVertexArray;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfView* sfView_create(void)
|
||||
sfView* sfView_create()
|
||||
{
|
||||
return new sfView;
|
||||
}
|
||||
|
||||
@@ -167,7 +167,7 @@ const char* sfFtpResponse_getMessage(const sfFtpResponse* ftpResponse)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfFtp* sfFtp_create(void)
|
||||
sfFtp* sfFtp_create()
|
||||
{
|
||||
return new sfFtp;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfHttpRequest* sfHttpRequest_create(void)
|
||||
sfHttpRequest* sfHttpRequest_create()
|
||||
{
|
||||
return new sfHttpRequest;
|
||||
}
|
||||
@@ -132,7 +132,7 @@ const char* sfHttpResponse_getBody(const sfHttpResponse* httpResponse)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfHttp* sfHttp_create(void)
|
||||
sfHttp* sfHttp_create()
|
||||
{
|
||||
return new sfHttp;
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ uint32_t sfIpAddress_toInteger(sfIpAddress address)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfIpAddress sfIpAddress_getLocalAddress(void)
|
||||
sfIpAddress sfIpAddress_getLocalAddress()
|
||||
{
|
||||
return fromSFMLAddress(sf::IpAddress::getLocalAddress());
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfPacket* sfPacket_create(void)
|
||||
sfPacket* sfPacket_create()
|
||||
{
|
||||
return new sfPacket;
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfSocketSelector* sfSocketSelector_create(void)
|
||||
sfSocketSelector* sfSocketSelector_create()
|
||||
{
|
||||
return new sfSocketSelector;
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfTcpListener* sfTcpListener_create(void)
|
||||
sfTcpListener* sfTcpListener_create()
|
||||
{
|
||||
return new sfTcpListener;
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfTcpSocket* sfTcpSocket_create(void)
|
||||
sfTcpSocket* sfTcpSocket_create()
|
||||
{
|
||||
return new sfTcpSocket;
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfUdpSocket* sfUdpSocket_create(void)
|
||||
sfUdpSocket* sfUdpSocket_create()
|
||||
{
|
||||
return new sfUdpSocket;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfBuffer* sfBuffer_create(void)
|
||||
sfBuffer* sfBuffer_create()
|
||||
{
|
||||
return new sfBuffer;
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfClock* sfClock_create(void)
|
||||
sfClock* sfClock_create()
|
||||
{
|
||||
return new sfClock;
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfContext* sfContext_create(void)
|
||||
sfContext* sfContext_create()
|
||||
{
|
||||
return new sfContext;
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ sfJoystickIdentification sfJoystick_getIdentification(unsigned int joystick)
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
void sfJoystick_update(void)
|
||||
void sfJoystick_update()
|
||||
{
|
||||
sf::Joystick::update();
|
||||
}
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfVideoMode sfVideoMode_getDesktopMode(void)
|
||||
sfVideoMode sfVideoMode_getDesktopMode()
|
||||
{
|
||||
sf::VideoMode desktop = sf::VideoMode::getDesktopMode();
|
||||
sfVideoMode ret;
|
||||
|
||||
Reference in new issue
Block a user