pkgsrc/mail/avenger/patches/patch-libasync_ihash.h
adam 5722f491ca Changes 0.8.2:
* Look for BerkeleyDB in more places for Debian.
* Fix a few compiler warnings to deal with gcc 4.6.
* Update to newer version numbers of BerkeleyDB.
2012-01-18 14:32:10 +00:00

35 lines
956 B
C++

$NetBSD: patch-libasync_ihash.h,v 1.1 2012/01/18 14:32:10 adam Exp $
Fix C++ errors
--- libasync/ihash.h.orig 2012-01-18 14:07:53.000000000 +0000
+++ libasync/ihash.h
@@ -235,7 +235,7 @@ public:
ihash () : eq (E ()), hash (H ()) {}
ihash (const E &e, const H &h) : eq (e), hash (h) {}
- void insert (V *elm) { insert_val (elm, hash (elm->*key)); }
+ void insert (V *elm) { this->insert_val (elm, hash (elm->*key)); }
#if 0
template<class T> V *operator[] (const T &k) const {
@@ -243,16 +243,16 @@ public:
V *operator[] (const K &k) const {
#endif
V *v;
- for (v = lookup_val (hash (k));
+ for (v = this->lookup_val (hash (k));
v && !eq (k, v->*key);
- v = next_val (v))
+ v = this->next_val (v))
;
return v;
}
V *nextkeq (V *v) {
const K &k = v->*key;
- while ((v = next_val (v)) && !eq (k, v->*key))
+ while ((v = this->next_val (v)) && !eq (k, v->*key))
;
return v;
};