From kde-commits Tue Sep 29 17:15:47 2009 From: =?utf-8?q?Aaron=20J=2E=20Seigo?= Date: Tue, 29 Sep 2009 17:15:47 +0000 To: kde-commits Subject: branches/KDE/4.3/kdeplasma-addons/applets/microblog Message-Id: <1254244547.976145.21685.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125424455526033 SVN commit 1029410 by aseigo: ulong instead of uint; patch by chrissalch CCBUG:207327 M +4 -4 microblog.cpp M +2 -2 microblog.h --- branches/KDE/4.3/kdeplasma-addons/applets/microblog/microblog.cpp #1029409:1029410 @@ -381,9 +381,9 @@ //add the newbies int newCount = 0; - uint maxId = m_lastTweet; + ulong maxId = m_lastTweet; foreach (const QString &id, data.keys()) { - uint i = id.toUInt(); + ulong i = id.toULong(); //kDebug() << i << m_lastTweet; if (i > m_lastTweet) { newCount++; @@ -464,7 +464,7 @@ // Add more tweetWidgets if there are not enough if (m_tweetMap.count() > m_historySize) { - QMap::iterator it = m_tweetMap.begin(); + QMap::iterator it = m_tweetMap.begin(); while (it != m_tweetMap.end() && m_tweetMap.count() > m_historySize) { it = m_tweetMap.erase(it); } @@ -521,7 +521,7 @@ } int i = 0; - QMap::iterator it = m_tweetMap.end(); + QMap::iterator it = m_tweetMap.end(); while (it != m_tweetMap.begin()) { Plasma::DataEngine::Data &tweetData = *(--it); QString user = tweetData.value("User").toString(); --- branches/KDE/4.3/kdeplasma-addons/applets/microblog/microblog.h #1029409:1029410 @@ -162,10 +162,10 @@ QString m_curTimeline; QMap m_pictureMap; - QMap m_tweetMap; + QMap m_tweetMap; QList m_tweetWidgets; - uint m_lastTweet; + ulong m_lastTweet; KWallet::Wallet *m_wallet; enum WalletWait { None=0, Read, Write }; WalletWait m_walletWait;