diff options
Diffstat (limited to 'debian/patches/fix-ftbfs-gcc4.7.diff')
-rw-r--r-- | debian/patches/fix-ftbfs-gcc4.7.diff | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/debian/patches/fix-ftbfs-gcc4.7.diff b/debian/patches/fix-ftbfs-gcc4.7.diff deleted file mode 100644 index 2299820..0000000 --- a/debian/patches/fix-ftbfs-gcc4.7.diff +++ /dev/null @@ -1,25 +0,0 @@ -Partially fix ftbfs with gcc-4.7 -Index: sword-1.6.2+dfsg/include/multimapwdef.h -=================================================================== ---- sword-1.6.2+dfsg.orig/include/multimapwdef.h 2004-05-04 21:01:39.000000000 +0000 -+++ sword-1.6.2+dfsg/include/multimapwdef.h 2012-04-16 20:07:17.256834065 +0000 -@@ -19,14 +19,14 @@ - } - - T& operator[](const Key& k) { -- if (find(k) == this->end()) { -- insert(value_type(k, T())); -+ if (this->find(k) == this->end()) { -+ this->insert(value_type(k, T())); - } -- return (*(find(k))).second; -+ return (*(this->find(k))).second; - } - bool has(const Key& k, const T &val) const { -- typename std::multimap<Key, T, Compare>::const_iterator start = lower_bound(k); -- typename std::multimap<Key, T, Compare>::const_iterator end = upper_bound(k); -+ typename std::multimap<Key, T, Compare>::const_iterator start = this->lower_bound(k); -+ typename std::multimap<Key, T, Compare>::const_iterator end = this->upper_bound(k); - for (; start!=end; start++) { - if (start->second == val) - return true; |