Fixed issues reported by Coverity Scan static analysis (run using Linux build configuration).

This commit is contained in:
binary1248 2016-02-23 03:07:12 +01:00 committed by Lukas Dürrenberger
parent 23ea17eab7
commit 3ff1d251a8
13 changed files with 93 additions and 41 deletions

View file

@ -3,7 +3,6 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Audio.hpp>
#include <iomanip>
#include <iostream>
@ -76,7 +75,7 @@ int main()
while (sound.getStatus() == sf::Sound::Playing)
{
// Display the playing position
std::cout << "\rPlaying... " << std::fixed << std::setprecision(2) << sound.getPlayingOffset().asSeconds() << " sec";
std::cout << "\rPlaying... " << sound.getPlayingOffset().asSeconds() << " sec ";
std::cout << std::flush;
// Leave some CPU time for other threads