Skip to content

Commit 86a7828

Browse files
committed
Fix const correctness issue
1 parent feb431a commit 86a7828

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/CSFML/Graphics/VertexArray.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ CSFML_GRAPHICS_API void sfVertexArray_setPrimitiveType(sfVertexArray* vertexArra
150150
/// \return Primitive type
151151
///
152152
////////////////////////////////////////////////////////////
153-
CSFML_GRAPHICS_API sfPrimitiveType sfVertexArray_getPrimitiveType(sfVertexArray* vertexArray);
153+
CSFML_GRAPHICS_API sfPrimitiveType sfVertexArray_getPrimitiveType(const sfVertexArray* vertexArray);
154154

155155
////////////////////////////////////////////////////////////
156156
/// \brief Compute the bounding rectangle of a vertex array
@@ -163,4 +163,4 @@ CSFML_GRAPHICS_API sfPrimitiveType sfVertexArray_getPrimitiveType(sfVertexArray*
163163
/// \return Bounding rectangle of the vertex array
164164
///
165165
////////////////////////////////////////////////////////////
166-
CSFML_GRAPHICS_API sfFloatRect sfVertexArray_getBounds(sfVertexArray* vertexArray);
166+
CSFML_GRAPHICS_API sfFloatRect sfVertexArray_getBounds(const sfVertexArray* vertexArray);

src/CSFML/Graphics/VertexArray.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ void sfVertexArray_setPrimitiveType(sfVertexArray* vertexArray, sfPrimitiveType
104104

105105

106106
////////////////////////////////////////////////////////////
107-
sfPrimitiveType sfVertexArray_getPrimitiveType(sfVertexArray* vertexArray)
107+
sfPrimitiveType sfVertexArray_getPrimitiveType(const sfVertexArray* vertexArray)
108108
{
109109
assert(vertexArray);
110110
return static_cast<sfPrimitiveType>(vertexArray->getPrimitiveType());
111111
}
112112

113113

114114
////////////////////////////////////////////////////////////
115-
sfFloatRect sfVertexArray_getBounds(sfVertexArray* vertexArray)
115+
sfFloatRect sfVertexArray_getBounds(const sfVertexArray* vertexArray)
116116
{
117117
assert(vertexArray);
118118
return convertRect(vertexArray->getBounds());

0 commit comments

Comments
 (0)