get rid of C style casts

This commit is contained in:
Andrzej Rybczak
2009-05-21 23:51:56 +02:00
parent 7eb74a6da2
commit ecd4c8cc17
8 changed files with 18 additions and 18 deletions

View File

@@ -408,7 +408,7 @@ void NcmpcppStatusChanged(Connection *Mpd, StatusChanges changed, void *)
}
if (!block_progressbar_update)
{
double progressbar_size = (double)elapsed/(np.GetTotalLength());
double progressbar_size = elapsed/double(np.GetTotalLength());
int howlong = wFooter->GetWidth()*progressbar_size;
wFooter->SetColor(Config.progressbar_color);
mvwhline(wFooter->Raw(), 0, 0, 0, wFooter->GetWidth());