Skip to content

Commit

Permalink
Remove unnecessary (void) parameters from C++ implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Aug 25, 2024
1 parent e2e5ef1 commit 55fe064
Show file tree
Hide file tree
Showing 23 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/CSFML/Audio/Listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void sfListener_setGlobalVolume(float volume)


////////////////////////////////////////////////////////////
float sfListener_getGlobalVolume(void)
float sfListener_getGlobalVolume()
{
return sf::Listener::getGlobalVolume();
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/Audio/SoundBufferRecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


////////////////////////////////////////////////////////////
sfSoundBufferRecorder* sfSoundBufferRecorder_create(void)
sfSoundBufferRecorder* sfSoundBufferRecorder_create()
{
return new sfSoundBufferRecorder;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/Audio/SoundRecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ unsigned int sfSoundRecorder_getSampleRate(const sfSoundRecorder* soundRecorder)


////////////////////////////////////////////////////////////
bool sfSoundRecorder_isAvailable(void)
bool sfSoundRecorder_isAvailable()
{
return sf::SoundRecorder::isAvailable();
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/Graphics/CircleShape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@


////////////////////////////////////////////////////////////
sfCircleShape* sfCircleShape_create(void)
sfCircleShape* sfCircleShape_create()
{
sfCircleShape* shape = new sfCircleShape;
shape->Texture = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/Graphics/ConvexShape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@


////////////////////////////////////////////////////////////
sfConvexShape* sfConvexShape_create(void)
sfConvexShape* sfConvexShape_create()
{
return new sfConvexShape;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/Graphics/RectangleShape.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@


////////////////////////////////////////////////////////////
sfRectangleShape* sfRectangleShape_create(void)
sfRectangleShape* sfRectangleShape_create()
{
return new sfRectangleShape;
}
Expand Down
4 changes: 2 additions & 2 deletions src/CSFML/Graphics/Shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
2 changes: 1 addition & 1 deletion src/CSFML/Graphics/Transformable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@


////////////////////////////////////////////////////////////
sfTransformable* sfTransformable_create(void)
sfTransformable* sfTransformable_create()
{
sfTransformable* transformable = new sfTransformable;

Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/Graphics/VertexArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


////////////////////////////////////////////////////////////
sfVertexArray* sfVertexArray_create(void)
sfVertexArray* sfVertexArray_create()
{
return new sfVertexArray;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/Graphics/View.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


////////////////////////////////////////////////////////////
sfView* sfView_create(void)
sfView* sfView_create()
{
return new sfView;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/Network/Ftp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const char* sfFtpResponse_getMessage(const sfFtpResponse* ftpResponse)


////////////////////////////////////////////////////////////
sfFtp* sfFtp_create(void)
sfFtp* sfFtp_create()
{
return new sfFtp;
}
Expand Down
4 changes: 2 additions & 2 deletions src/CSFML/Network/Http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


////////////////////////////////////////////////////////////
sfHttpRequest* sfHttpRequest_create(void)
sfHttpRequest* sfHttpRequest_create()
{
return new sfHttpRequest;
}
Expand Down Expand Up @@ -132,7 +132,7 @@ const char* sfHttpResponse_getBody(const sfHttpResponse* httpResponse)


////////////////////////////////////////////////////////////
sfHttp* sfHttp_create(void)
sfHttp* sfHttp_create()
{
return new sfHttp;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/Network/IpAddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ uint32_t sfIpAddress_toInteger(sfIpAddress address)


////////////////////////////////////////////////////////////
sfIpAddress sfIpAddress_getLocalAddress(void)
sfIpAddress sfIpAddress_getLocalAddress()
{
return fromSFMLAddress(sf::IpAddress::getLocalAddress());
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/Network/Packet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


////////////////////////////////////////////////////////////
sfPacket* sfPacket_create(void)
sfPacket* sfPacket_create()
{
return new sfPacket;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/Network/SocketSelector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@


////////////////////////////////////////////////////////////
sfSocketSelector* sfSocketSelector_create(void)
sfSocketSelector* sfSocketSelector_create()
{
return new sfSocketSelector;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/Network/TcpListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@


////////////////////////////////////////////////////////////
sfTcpListener* sfTcpListener_create(void)
sfTcpListener* sfTcpListener_create()
{
return new sfTcpListener;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/Network/TcpSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@


////////////////////////////////////////////////////////////
sfTcpSocket* sfTcpSocket_create(void)
sfTcpSocket* sfTcpSocket_create()
{
return new sfTcpSocket;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/Network/UdpSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@


////////////////////////////////////////////////////////////
sfUdpSocket* sfUdpSocket_create(void)
sfUdpSocket* sfUdpSocket_create()
{
return new sfUdpSocket;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/System/Buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


////////////////////////////////////////////////////////////
sfBuffer* sfBuffer_create(void)
sfBuffer* sfBuffer_create()
{
return new sfBuffer;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/System/Clock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@


////////////////////////////////////////////////////////////
sfClock* sfClock_create(void)
sfClock* sfClock_create()
{
return new sfClock;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/Window/Context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@


////////////////////////////////////////////////////////////
sfContext* sfContext_create(void)
sfContext* sfContext_create()
{
return new sfContext;
}
Expand Down
2 changes: 1 addition & 1 deletion src/CSFML/Window/Joystick.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ sfJoystickIdentification sfJoystick_getIdentification(unsigned int joystick)
}

////////////////////////////////////////////////////////////
void sfJoystick_update(void)
void sfJoystick_update()
{
sf::Joystick::update();
}
2 changes: 1 addition & 1 deletion src/CSFML/Window/VideoMode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


////////////////////////////////////////////////////////////
sfVideoMode sfVideoMode_getDesktopMode(void)
sfVideoMode sfVideoMode_getDesktopMode()
{
sf::VideoMode desktop = sf::VideoMode::getDesktopMode();
sfVideoMode ret;
Expand Down

0 comments on commit 55fe064

Please sign in to comment.