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
@@ -51,7 +51,7 @@ CSFML_AUDIO_API sfSound* sfSound_create(void);
/// \return A new sfSound object which is a copy of \a sound /// \return A new sfSound object which is a copy of \a sound
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
CSFML_AUDIO_API sfSound* sfSound_copy(sfSound* sound); CSFML_AUDIO_API sfSound* sfSound_copy(const sfSound* sound);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destroy a sound /// \brief Destroy a sound
+1 -1
View File
@@ -102,7 +102,7 @@ CSFML_AUDIO_API sfSoundBuffer* sfSoundBuffer_createFromSamples(const sfInt16* sa
/// \return A new sfSoundBuffer object which is a copy of \a soundBuffer /// \return A new sfSoundBuffer object which is a copy of \a soundBuffer
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
CSFML_AUDIO_API sfSoundBuffer* sfSoundBuffer_copy(sfSoundBuffer* soundBuffer); CSFML_AUDIO_API sfSoundBuffer* sfSoundBuffer_copy(const sfSoundBuffer* soundBuffer);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destroy a sound buffer /// \brief Destroy a sound buffer
+1 -1
View File
@@ -52,7 +52,7 @@ CSFML_GRAPHICS_API sfCircleShape* sfCircleShape_create(void);
/// \return Copied object /// \return Copied object
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API sfCircleShape* sfCircleShape_copy(sfCircleShape* shape); CSFML_GRAPHICS_API sfCircleShape* sfCircleShape_copy(const sfCircleShape* shape);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destroy an existing circle Shape /// \brief Destroy an existing circle Shape
+1 -1
View File
@@ -52,7 +52,7 @@ CSFML_GRAPHICS_API sfConvexShape* sfConvexShape_create(void);
/// \return Copied object /// \return Copied object
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API sfConvexShape* sfConvexShape_copy(sfConvexShape* shape); CSFML_GRAPHICS_API sfConvexShape* sfConvexShape_copy(const sfConvexShape* shape);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destroy an existing convex Shape /// \brief Destroy an existing convex Shape
+1 -1
View File
@@ -74,7 +74,7 @@ CSFML_GRAPHICS_API sfFont* sfFont_createFromStream(sfInputStream* stream);
/// \return Copied object /// \return Copied object
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API sfFont* sfFont_copy(sfFont* font); CSFML_GRAPHICS_API sfFont* sfFont_copy(const sfFont* font);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destroy an existing font /// \brief Destroy an existing font
+1 -1
View File
@@ -133,7 +133,7 @@ CSFML_GRAPHICS_API sfImage* sfImage_createFromStream(sfInputStream* stream);
/// \return Copied object /// \return Copied object
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API sfImage* sfImage_copy(sfImage* image); CSFML_GRAPHICS_API sfImage* sfImage_copy(const sfImage* image);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destroy an existing image /// \brief Destroy an existing image
+1 -1
View File
@@ -52,7 +52,7 @@ CSFML_GRAPHICS_API sfRectangleShape* sfRectangleShape_create(void);
/// \return Copied object /// \return Copied object
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API sfRectangleShape* sfRectangleShape_copy(sfRectangleShape* shape); CSFML_GRAPHICS_API sfRectangleShape* sfRectangleShape_copy(const sfRectangleShape* shape);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destroy an existing rectangle shape /// \brief Destroy an existing rectangle shape
+1 -1
View File
@@ -53,7 +53,7 @@ CSFML_GRAPHICS_API sfSprite* sfSprite_create(void);
/// \return Copied object /// \return Copied object
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API sfSprite* sfSprite_copy(sfSprite* sprite); CSFML_GRAPHICS_API sfSprite* sfSprite_copy(const sfSprite* sprite);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destroy an existing sprite /// \brief Destroy an existing sprite
+1 -1
View File
@@ -65,7 +65,7 @@ CSFML_GRAPHICS_API sfText* sfText_create(void);
/// \return Copied object /// \return Copied object
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API sfText* sfText_copy(sfText* text); CSFML_GRAPHICS_API sfText* sfText_copy(const sfText* text);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destroy an existing text /// \brief Destroy an existing text
+1 -1
View File
@@ -101,7 +101,7 @@ CSFML_GRAPHICS_API sfTexture* sfTexture_createFromImage(const sfImage* image, co
/// \return Copied object /// \return Copied object
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API sfTexture* sfTexture_copy(sfTexture* texture); CSFML_GRAPHICS_API sfTexture* sfTexture_copy(const sfTexture* texture);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destroy an existing texture /// \brief Destroy an existing texture
+1 -1
View File
@@ -50,7 +50,7 @@ CSFML_GRAPHICS_API sfTransformable* sfTransformable_create(void);
/// \return Copied object /// \return Copied object
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API sfTransformable* sfTransformable_copy(sfTransformable* transformable); CSFML_GRAPHICS_API sfTransformable* sfTransformable_copy(const sfTransformable* transformable);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destroy an existing transformable /// \brief Destroy an existing transformable
+1 -1
View File
@@ -51,7 +51,7 @@ CSFML_GRAPHICS_API sfVertexArray* sfVertexArray_create(void);
/// \return Copied object /// \return Copied object
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API sfVertexArray* sfVertexArray_copy(sfVertexArray* vertexArray); CSFML_GRAPHICS_API sfVertexArray* sfVertexArray_copy(const sfVertexArray* vertexArray);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destroy an existing vertex array /// \brief Destroy an existing vertex array
+1 -1
View File
@@ -62,7 +62,7 @@ CSFML_GRAPHICS_API sfView* sfView_createFromRect(sfFloatRect rectangle);
/// \return Copied object /// \return Copied object
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
CSFML_GRAPHICS_API sfView* sfView_copy(sfView* view); CSFML_GRAPHICS_API sfView* sfView_copy(const sfView* view);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destroy an existing view /// \brief Destroy an existing view
+1 -1
View File
@@ -49,7 +49,7 @@ CSFML_NETWORK_API sfPacket* sfPacket_create(void);
/// \return A new sfPacket object which is a copy of \a packet /// \return A new sfPacket object which is a copy of \a packet
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
CSFML_NETWORK_API sfPacket* sfPacket_copy(sfPacket* packet); CSFML_NETWORK_API sfPacket* sfPacket_copy(const sfPacket* packet);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destroy a packet /// \brief Destroy a packet
+1 -1
View File
@@ -49,7 +49,7 @@ CSFML_NETWORK_API sfSocketSelector* sfSocketSelector_create(void);
/// \return A new sfSocketSelector object which is a copy of \a selector /// \return A new sfSocketSelector object which is a copy of \a selector
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
CSFML_NETWORK_API sfSocketSelector* sfSocketSelector_copy(sfSocketSelector* selector); CSFML_NETWORK_API sfSocketSelector* sfSocketSelector_copy(const sfSocketSelector* selector);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destroy a socket selector /// \brief Destroy a socket selector
+1 -1
View File
@@ -49,7 +49,7 @@ CSFML_SYSTEM_API sfClock* sfClock_create(void);
/// \return A new sfClock object which is a copy of \a clock /// \return A new sfClock object which is a copy of \a clock
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
CSFML_SYSTEM_API sfClock* sfClock_copy(sfClock* clock); CSFML_SYSTEM_API sfClock* sfClock_copy(const sfClock* clock);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destroy a clock /// \brief Destroy a clock
+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); 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); 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); 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); CSFML_CHECK_RETURN(shape, NULL);
+1 -1
View File
@@ -85,7 +85,7 @@ sfFont* sfFont_createFromStream(sfInputStream* stream)
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// Copy an existing font /// Copy an existing font
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
sfFont* sfFont_copy(sfFont* font) sfFont* sfFont_copy(const sfFont* font)
{ {
CSFML_CHECK_RETURN(font, NULL); 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); 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); 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); 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); 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); 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); 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); 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); 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); 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); 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); CSFML_CHECK_RETURN(clock, NULL);