From a61eb6aeefe311219072cf17269005b5c3ad0322 Mon Sep 17 00:00:00 2001 From: Vittorio Romeo Date: Wed, 15 May 2024 03:00:19 +0200 Subject: [PATCH] Do not use 'sf::err' in examples --- examples/sound_effects/SoundEffects.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/sound_effects/SoundEffects.cpp b/examples/sound_effects/SoundEffects.cpp index 77404e4c0..cbbecd31c 100644 --- a/examples/sound_effects/SoundEffects.cpp +++ b/examples/sound_effects/SoundEffects.cpp @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -113,7 +114,7 @@ public: // Load the music file if (!m_music.openFromFile(resourcesDir() / "doodle_pop.ogg")) - sf::err() << "Failed to load " << (resourcesDir() / "doodle_pop.ogg").string() << std::endl; + std::cerr << "Failed to load " << (resourcesDir() / "doodle_pop.ogg").string() << std::endl; // Set the music to loop m_music.setLoop(true); @@ -172,7 +173,7 @@ public: { // Load the music file if (!m_music.openFromFile(resourcesDir() / "doodle_pop.ogg")) - sf::err() << "Failed to load " << (resourcesDir() / "doodle_pop.ogg").string() << std::endl; + std::cerr << "Failed to load " << (resourcesDir() / "doodle_pop.ogg").string() << std::endl; // Set the music to loop m_music.setLoop(true); @@ -275,7 +276,7 @@ public: // Load the music file if (!m_music.openFromFile(resourcesDir() / "doodle_pop.ogg")) - sf::err() << "Failed to load " << (resourcesDir() / "doodle_pop.ogg").string() << std::endl; + std::cerr << "Failed to load " << (resourcesDir() / "doodle_pop.ogg").string() << std::endl; // Set the music to loop m_music.setLoop(true);