1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-01 11:50:37 +02:00

Remove some warnings

This commit is contained in:
Jeff Mitchell
2012-06-19 22:24:20 -04:00
parent 6e46b03f86
commit 2603a7d28b

View File

@@ -129,7 +129,7 @@ LastFmConfig::loadHistory()
void void
LastFmConfig::onHistoryLoaded() LastFmConfig::onHistoryLoaded()
{ {
int total = 0; uint total = 0;
bool finished = false; bool finished = false;
QNetworkReply* reply = qobject_cast< QNetworkReply* >( sender() ); QNetworkReply* reply = qobject_cast< QNetworkReply* >( sender() );
@@ -152,8 +152,8 @@ LastFmConfig::onHistoryLoaded()
{ {
lastfm::XmlQuery stats = lfm.children( "recenttracks" ).first(); lastfm::XmlQuery stats = lfm.children( "recenttracks" ).first();
int page = stats.attribute( "page" ).toInt(); uint page = stats.attribute( "page" ).toUInt();
total = stats.attribute( "totalPages" ).toInt(); total = stats.attribute( "totalPages" ).toUInt();
m_ui->progressBar->setMaximum( total ); m_ui->progressBar->setMaximum( total );
m_ui->progressBar->setValue( page ); m_ui->progressBar->setValue( page );