[ekiga/jp-opal-roster: 23/33] Opal::Account: a local variable was shadowing an instance variable



commit b3523455e66178680f9ff9482b1c6b211c6542f7
Author: Julien Puydt <jpuydt free fr>
Date:   Sat Oct 26 18:06:41 2013 +0200

    Opal::Account: a local variable was shadowing an instance variable

 lib/engine/components/opal/opal-account.cpp |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/lib/engine/components/opal/opal-account.cpp b/lib/engine/components/opal/opal-account.cpp
index 055428a..1b650f3 100644
--- a/lib/engine/components/opal/opal-account.cpp
+++ b/lib/engine/components/opal/opal-account.cpp
@@ -139,15 +139,15 @@ Opal::Account::Account (boost::shared_ptr<Opal::Sip::EndPoint> _sip_endpoint,
       roster_node = child;
       for (xmlNodePtr presnode = roster_node->children; presnode != NULL; presnode = presnode->next) {
 
-       Opal::PresentityPtr presentity(new Presentity (presence_core,
-                                                      existing_groups,
-                                                      presnode));
-
-       presentity->trigger_saving.connect (boost::ref (trigger_saving));
-       presentity->removed.connect (boost::bind (boost::ref (presentity_removed), presentity));
-       presentity->updated.connect (boost::bind (boost::ref (presentity_updated), presentity));
-       add_object (presentity);
-       presentity_added (presentity);
+       Opal::PresentityPtr pres(new Presentity (presence_core,
+                                                existing_groups,
+                                                presnode));
+
+       pres->trigger_saving.connect (boost::ref (trigger_saving));
+       pres->removed.connect (boost::bind (boost::ref (presentity_removed), pres));
+       pres->updated.connect (boost::bind (boost::ref (presentity_updated), pres));
+       add_object (pres);
+       presentity_added (pres);
       }
     }
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]