Fixed issues reported by Coverity Scan static analysis (run using Linux build configuration).
This commit is contained in:
parent
23ea17eab7
commit
3ff1d251a8
13 changed files with 93 additions and 41 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue