[ekiga] Avahi client code fix : detect duplicates correctly
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Avahi client code fix : detect duplicates correctly
- Date: Sun, 6 Jun 2010 14:28:11 +0000 (UTC)
commit 432281423c2990291d3579601ba219bd43e4337b
Author: Julien Puydt <jpuydt gnome org>
Date: Sun Jun 6 16:20:09 2010 +0200
Avahi client code fix : detect duplicates correctly
The good news is that using boost::ref also reduces a little our memory needs.
The bad news is that this code used to work, and I don't know why it broke.
lib/engine/components/avahi/avahi-heap.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/components/avahi/avahi-heap.cpp b/lib/engine/components/avahi/avahi-heap.cpp
index 22a1276..f9376c9 100644
--- a/lib/engine/components/avahi/avahi-heap.cpp
+++ b/lib/engine/components/avahi/avahi-heap.cpp
@@ -280,7 +280,7 @@ public:
resolver_callback_helper (const std::string name_): name(name_)
{}
- bool test (Ekiga::PresentityPtr pres_)
+ bool operator() (Ekiga::PresentityPtr pres_)
{
boost::shared_ptr<Ekiga::URIPresentity> presentity_ = boost::dynamic_pointer_cast<Ekiga::URIPresentity> (pres_);
bool result;
@@ -365,7 +365,7 @@ Avahi::Heap::ResolverCallback (AvahiServiceResolver *resolver,
}
resolver_callback_helper helper(name);
- visit_presentities (boost::bind (&resolver_callback_helper::test, helper, _1));
+ visit_presentities (boost::ref (helper));
if (helper.found_presentity ()) {
/* known contact has been updated */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]