[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.3/kdeplasma-addons/applets/microblog
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2009-09-29 17:15:47
Message-ID: 1254244547.976145.21685.nullmailer () svn ! kde ! org
[Download RAW message or body]

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<uint, Plasma::DataEngine::Data>::iterator it = m_tweetMap.begin();
+        QMap<ulong, Plasma::DataEngine::Data>::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<uint, Plasma::DataEngine::Data>::iterator it = m_tweetMap.end();
+    QMap<ulong, Plasma::DataEngine::Data>::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<QString, QPixmap> m_pictureMap;
-        QMap<uint, Plasma::DataEngine::Data> m_tweetMap;
+        QMap<ulong, Plasma::DataEngine::Data> m_tweetMap;
         QList<Tweet> m_tweetWidgets;
 
-        uint m_lastTweet;
+        ulong m_lastTweet;
         KWallet::Wallet *m_wallet;
         enum WalletWait { None=0, Read, Write };
         WalletWait m_walletWait;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic