The Xxx_copy functions now take a const pointer

This commit is contained in:
Laurent Gomila committed 2012-12-08 13:53:57 +01:00
1 parent 8c9f98f17e
commit de75c6a122
32 files changed
+32 -32

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ sfSound* sfSound_create(void)
////////////////////////////////////////////////////////////
sfSound* sfSound_copy(sfSound* sound)
sfSound* sfSound_copy(const sfSound* sound)
{
CSFML_CHECK_RETURN(sound, NULL);
+1 -1
View File
@@ -95,7 +95,7 @@ sfSoundBuffer* sfSoundBuffer_createFromSamples(const sfInt16* samples, size_t sa
////////////////////////////////////////////////////////////
sfSoundBuffer* sfSoundBuffer_copy(sfSoundBuffer* soundBuffer)
sfSoundBuffer* sfSoundBuffer_copy(const sfSoundBuffer* soundBuffer)
{
CSFML_CHECK_RETURN(soundBuffer, NULL);
+1 -1
View File
@@ -43,7 +43,7 @@ sfCircleShape* sfCircleShape_create(void)
////////////////////////////////////////////////////////////
sfCircleShape* sfCircleShape_copy(sfCircleShape* shape)
sfCircleShape* sfCircleShape_copy(const sfCircleShape* shape)
{
CSFML_CHECK_RETURN(shape, NULL);
+1 -1
View File
@@ -40,7 +40,7 @@ sfConvexShape* sfConvexShape_create(void)
////////////////////////////////////////////////////////////
sfConvexShape* sfConvexShape_copy(sfConvexShape* shape)
sfConvexShape* sfConvexShape_copy(const sfConvexShape* shape)
{
CSFML_CHECK_RETURN(shape, NULL);
+1 -1
View File
@@ -85,7 +85,7 @@ sfFont* sfFont_createFromStream(sfInputStream* stream)
////////////////////////////////////////////////////////////
/// Copy an existing font
////////////////////////////////////////////////////////////
sfFont* sfFont_copy(sfFont* font)
sfFont* sfFont_copy(const sfFont* font)
{
CSFML_CHECK_RETURN(font, NULL);
+1 -1
View File
@@ -109,7 +109,7 @@ sfImage* sfImage_createFromStream(sfInputStream* stream)
////////////////////////////////////////////////////////////
sfImage* sfImage_copy(sfImage* image)
sfImage* sfImage_copy(const sfImage* image)
{
CSFML_CHECK_RETURN(image, NULL);
+1 -1
View File
@@ -40,7 +40,7 @@ sfRectangleShape* sfRectangleShape_create(void)
////////////////////////////////////////////////////////////
sfRectangleShape* sfRectangleShape_copy(sfRectangleShape* shape)
sfRectangleShape* sfRectangleShape_copy(const sfRectangleShape* shape)
{
CSFML_CHECK_RETURN(shape, NULL);
+1 -1
View File
@@ -44,7 +44,7 @@ sfSprite* sfSprite_create(void)
////////////////////////////////////////////////////////////
sfSprite* sfSprite_copy(sfSprite* sprite)
sfSprite* sfSprite_copy(const sfSprite* sprite)
{
CSFML_CHECK_RETURN(sprite, NULL);
+1 -1
View File
@@ -44,7 +44,7 @@ sfText* sfText_create(void)
////////////////////////////////////////////////////////////
sfText* sfText_copy(sfText* text)
sfText* sfText_copy(const sfText* text)
{
CSFML_CHECK_RETURN(text, NULL);
+1 -1
View File
@@ -131,7 +131,7 @@ sfTexture* sfTexture_createFromImage(const sfImage* image, const sfIntRect* area
////////////////////////////////////////////////////////////
sfTexture* sfTexture_copy(sfTexture* texture)
sfTexture* sfTexture_copy(const sfTexture* texture)
{
CSFML_CHECK_RETURN(texture, NULL);
+1 -1
View File
@@ -41,7 +41,7 @@ sfTransformable* sfTransformable_create(void)
////////////////////////////////////////////////////////////
sfTransformable* sfTransformable_copy(sfTransformable* transformable)
sfTransformable* sfTransformable_copy(const sfTransformable* transformable)
{
CSFML_CHECK_RETURN(transformable, NULL);
+1 -1
View File
@@ -38,7 +38,7 @@ sfVertexArray* sfVertexArray_create(void)
////////////////////////////////////////////////////////////
sfVertexArray* sfVertexArray_copy(sfVertexArray* vertexArray)
sfVertexArray* sfVertexArray_copy(const sfVertexArray* vertexArray)
{
CSFML_CHECK_RETURN(vertexArray, NULL);
+1 -1
View File
@@ -48,7 +48,7 @@ sfView* sfView_createFromRect(sfFloatRect rectangle)
////////////////////////////////////////////////////////////
sfView* sfView_copy(sfView* view)
sfView* sfView_copy(const sfView* view)
{
CSFML_CHECK_RETURN(view, NULL);
+1 -1
View File
@@ -38,7 +38,7 @@ sfPacket* sfPacket_create(void)
////////////////////////////////////////////////////////////
sfPacket* sfPacket_copy(sfPacket* packet)
sfPacket* sfPacket_copy(const sfPacket* packet)
{
CSFML_CHECK_RETURN(packet, NULL);
+1 -1
View File
@@ -41,7 +41,7 @@ sfSocketSelector* sfSocketSelector_create(void)
////////////////////////////////////////////////////////////
sfSocketSelector* sfSocketSelector_copy(sfSocketSelector* selector)
sfSocketSelector* sfSocketSelector_copy(const sfSocketSelector* selector)
{
CSFML_CHECK_RETURN(selector, NULL);
+1 -1
View File
@@ -38,7 +38,7 @@ sfClock* sfClock_create(void)
////////////////////////////////////////////////////////////
sfClock* sfClock_copy(sfClock* clock)
sfClock* sfClock_copy(const sfClock* clock)
{
CSFML_CHECK_RETURN(clock, NULL);