]> git.pld-linux.org Git - packages/sword.git/blame - sword-gcc47.patch
- release 12 (by relup.sh)
[packages/sword.git] / sword-gcc47.patch
CommitLineData
a8e5c9fc
JR
1--- include/multimapwdef.h 2004-05-04 17:01:39.000000000 -0400
2+++ include/multimapwdef.h.new 2012-02-22 22:05:38.034034838 -0500
3@@ -19,14 +19,14 @@
4 }
5
6 T& operator[](const Key& k) {
7- if (find(k) == this->end()) {
8- insert(value_type(k, T()));
9+ if (this->find(k) == this->end()) {
10+ this->insert(value_type(k, T()));
11 }
12- return (*(find(k))).second;
13+ return (*(this->find(k))).second;
14 }
15 bool has(const Key& k, const T &val) const {
16- typename std::multimap<Key, T, Compare>::const_iterator start = lower_bound(k);
17- typename std::multimap<Key, T, Compare>::const_iterator end = upper_bound(k);
18+ typename std::multimap<Key, T, Compare>::const_iterator start = this->lower_bound(k);
19+ typename std::multimap<Key, T, Compare>::const_iterator end = this->upper_bound(k);
20 for (; start!=end; start++) {
21 if (start->second == val)
22 return true;
This page took 0.047809 seconds and 4 git commands to generate.