Skip to content

Commit 55fe064

Browse files
committed
Remove unnecessary (void) parameters from C++ implementations
1 parent e2e5ef1 commit 55fe064

23 files changed

+25
-25
lines changed

src/CSFML/Audio/Listener.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void sfListener_setGlobalVolume(float volume)
3838

3939

4040
////////////////////////////////////////////////////////////
41-
float sfListener_getGlobalVolume(void)
41+
float sfListener_getGlobalVolume()
4242
{
4343
return sf::Listener::getGlobalVolume();
4444
}

src/CSFML/Audio/SoundBufferRecorder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232

3333
////////////////////////////////////////////////////////////
34-
sfSoundBufferRecorder* sfSoundBufferRecorder_create(void)
34+
sfSoundBufferRecorder* sfSoundBufferRecorder_create()
3535
{
3636
return new sfSoundBufferRecorder;
3737
}

src/CSFML/Audio/SoundRecorder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ unsigned int sfSoundRecorder_getSampleRate(const sfSoundRecorder* soundRecorder)
6969

7070

7171
////////////////////////////////////////////////////////////
72-
bool sfSoundRecorder_isAvailable(void)
72+
bool sfSoundRecorder_isAvailable()
7373
{
7474
return sf::SoundRecorder::isAvailable();
7575
}

src/CSFML/Graphics/CircleShape.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434

3535
////////////////////////////////////////////////////////////
36-
sfCircleShape* sfCircleShape_create(void)
36+
sfCircleShape* sfCircleShape_create()
3737
{
3838
sfCircleShape* shape = new sfCircleShape;
3939
shape->Texture = nullptr;

src/CSFML/Graphics/ConvexShape.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434

3535
////////////////////////////////////////////////////////////
36-
sfConvexShape* sfConvexShape_create(void)
36+
sfConvexShape* sfConvexShape_create()
3737
{
3838
return new sfConvexShape;
3939
}

src/CSFML/Graphics/RectangleShape.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434

3535
////////////////////////////////////////////////////////////
36-
sfRectangleShape* sfRectangleShape_create(void)
36+
sfRectangleShape* sfRectangleShape_create()
3737
{
3838
return new sfRectangleShape;
3939
}

src/CSFML/Graphics/Shader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,14 +389,14 @@ void sfShader_bind(const sfShader* shader)
389389

390390

391391
////////////////////////////////////////////////////////////
392-
bool sfShader_isAvailable(void)
392+
bool sfShader_isAvailable()
393393
{
394394
return sf::Shader::isAvailable();
395395
}
396396

397397

398398
////////////////////////////////////////////////////////////
399-
bool sfShader_isGeometryAvailable(void)
399+
bool sfShader_isGeometryAvailable()
400400
{
401401
return sf::Shader::isGeometryAvailable();
402402
}

src/CSFML/Graphics/Transformable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333

3434
////////////////////////////////////////////////////////////
35-
sfTransformable* sfTransformable_create(void)
35+
sfTransformable* sfTransformable_create()
3636
{
3737
sfTransformable* transformable = new sfTransformable;
3838

src/CSFML/Graphics/VertexArray.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232

3333
////////////////////////////////////////////////////////////
34-
sfVertexArray* sfVertexArray_create(void)
34+
sfVertexArray* sfVertexArray_create()
3535
{
3636
return new sfVertexArray;
3737
}

src/CSFML/Graphics/View.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232

3333
////////////////////////////////////////////////////////////
34-
sfView* sfView_create(void)
34+
sfView* sfView_create()
3535
{
3636
return new sfView;
3737
}

0 commit comments

Comments
 (0)