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

List:       kde-commits
Subject:    [choqok] microblogs/laconica: Fixed method overload with wrong parameters.
From:       Wolf-Michael Bolle <wmbolle () googlemail ! com>
Date:       2013-06-09 19:17:22
Message-ID: 20130609191722.5DD6BA605A () git ! kde ! org
[Download RAW message or body]

Git commit 39ed34048135aef7920888348c8a8e611db572b0 by Wolf-Michael Bolle.
Committed on 09/06/2013 at 21:13.
Pushed by wbolle into branch 'master'.

Fixed method overload with wrong parameters.

M  +8    -3    microblogs/laconica/laconicamicroblog.cpp
M  +6    -1    microblogs/laconica/laconicamicroblog.h

http://commits.kde.org/choqok/39ed34048135aef7920888348c8a8e611db572b0

diff --git a/microblogs/laconica/laconicamicroblog.cpp \
b/microblogs/laconica/laconicamicroblog.cpp index 4a74aad..35d4f11 100644
--- a/microblogs/laconica/laconicamicroblog.cpp
+++ b/microblogs/laconica/laconicamicroblog.cpp
@@ -228,11 +228,16 @@ void LaconicaMicroBlog::listFriendsUsername(TwitterApiAccount* \
theAccount)  {
     friendsList.clear();
     if ( theAccount ) {
-        requestFriendsScreenName(theAccount);
+        doRequestFriendsScreenName(theAccount, 1);
     }
 }
 
-void LaconicaMicroBlog::requestFriendsScreenName(TwitterApiAccount* theAccount, int \
page) +void LaconicaMicroBlog::requestFriendsScreenName(TwitterApiAccount* \
theAccount) +{
+    doRequestFriendsScreenName(theAccount, 1);
+}
+
+void LaconicaMicroBlog::doRequestFriendsScreenName(TwitterApiAccount* theAccount, \
int page)  {
     kDebug();
     TwitterApiAccount* account = qobject_cast<TwitterApiAccount*>(theAccount);
@@ -269,7 +274,7 @@ void LaconicaMicroBlog::slotRequestFriendsScreenName(KJob* job)
     }
     friendsList << newList;
     if ( newList.count() == 100 ) {
-        requestFriendsScreenName( theAccount, ++friendsPage );
+        doRequestFriendsScreenName( theAccount, ++friendsPage );
     } else {
         friendsList.removeDuplicates();
         theAccount->setFriendsList(friendsList);
diff --git a/microblogs/laconica/laconicamicroblog.h \
b/microblogs/laconica/laconicamicroblog.h index ee8da50..96b0d22 100644
--- a/microblogs/laconica/laconicamicroblog.h
+++ b/microblogs/laconica/laconicamicroblog.h
@@ -73,7 +73,12 @@ Q_SIGNALS:
 
 protected:
     virtual void listFriendsUsername(TwitterApiAccount* theAccount);
-    virtual void requestFriendsScreenName(TwitterApiAccount* theAccount, int page = \
1); +
+private:
+    void doRequestFriendsScreenName(TwitterApiAccount* theAccount, int page);
+
+public:
+    virtual void requestFriendsScreenName(TwitterApiAccount* theAccount);
 
     virtual QStringList readUsersScreenNameFromXml(Choqok::Account* theAccount, \
const QByteArray& buffer);  


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

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