From kde-commits Sat Oct 10 18:54:47 2009 From: Marco Martin Date: Sat, 10 Oct 2009 18:54:47 +0000 To: kde-commits Subject: branches/KDE/4.3/kdeplasma-addons/applets/microblog Message-Id: <1255200887.435670.16758.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125520089801367 SVN commit 1033679 by mart: backport the conversion to qulonglong for tweets ids: twitter is too big now M +4 -4 microblog.cpp M +2 -2 microblog.h --- branches/KDE/4.3/kdeplasma-addons/applets/microblog/microblog.cpp #1033678:1033679 @@ -381,9 +381,9 @@ //add the newbies int newCount = 0; - ulong maxId = m_lastTweet; + qulonglong maxId = m_lastTweet; foreach (const QString &id, data.keys()) { - ulong i = id.toULong(); + qulonglong 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 #1033678:1033679 @@ -162,10 +162,10 @@ QString m_curTimeline; QMap m_pictureMap; - QMap m_tweetMap; + QMap m_tweetMap; QList m_tweetWidgets; - ulong m_lastTweet; + qulonglong m_lastTweet; KWallet::Wallet *m_wallet; enum WalletWait { None=0, Read, Write }; WalletWait m_walletWait;