mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 13:06:13 +01:00
Improve const correctness
This commit is contained in:
1 parent
7f5807a6b5
commit
360268ea39
71 files changed
+82
-82
No files matched your search
+2
-2
@@ -12,7 +12,7 @@ int main(void)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
// Load a sprite to display
|
||||
sfTexture* texture = sfTexture_createFromFile("sfml_logo.png", NULL);
|
||||
const sfTexture* texture = sfTexture_createFromFile("sfml_logo.png", NULL);
|
||||
if (!texture)
|
||||
{
|
||||
sfRenderWindow_destroy(window);
|
||||
@@ -23,7 +23,7 @@ int main(void)
|
||||
sfSprite_setPosition(sprite, spritePosition);
|
||||
|
||||
// Create a graphical text to display
|
||||
sfFont* font = sfFont_createFromFile("tuffy.ttf");
|
||||
const sfFont* font = sfFont_createFromFile("tuffy.ttf");
|
||||
if (!font)
|
||||
{
|
||||
sfSprite_destroy(sprite);
|
||||
|
||||
Reference in new issue
Block a user