replace a few string algorithms with boost utilities

This commit is contained in:
Andrzej Rybczak
2012-10-04 22:33:17 +02:00
parent 5908250c18
commit 8db773cfec
28 changed files with 138 additions and 198 deletions

View File

@@ -37,6 +37,7 @@
#include "tag_editor.h"
#include "visualizer.h"
#include "title.h"
#include "utility/string.h"
using Global::myScreen;
@@ -325,7 +326,7 @@ void Status::Changes::elapsedTime()
if (Config.display_bitrate && Mpd.GetBitrate())
{
tracklength += " ";
tracklength += intTo<std::string>::apply(Mpd.GetBitrate());
tracklength += boost::lexical_cast<std::string>(Mpd.GetBitrate());
tracklength += " kbps";
}
@@ -359,7 +360,7 @@ void Status::Changes::elapsedTime()
if (Config.display_bitrate && Mpd.GetBitrate())
{
tracklength += " [";
tracklength += intTo<std::string>::apply(Mpd.GetBitrate());
tracklength += boost::lexical_cast<std::string>(Mpd.GetBitrate());
tracklength += " kbps]";
}
tracklength += " [";
@@ -498,7 +499,7 @@ void Status::Changes::mixer()
VolumeState += "n/a";
else
{
VolumeState += intTo<std::string>::apply(volume);
VolumeState += boost::lexical_cast<std::string>(volume);
VolumeState += "%";
}
*wHeader << Config.volume_color;