[sword-svn] r2713 - trunk/include

charcoal at crosswire.org charcoal at crosswire.org
Mon Aug 6 15:40:17 MST 2012


Author: charcoal
Date: 2012-08-06 15:40:17 -0700 (Mon, 06 Aug 2012)
New Revision: 2713

Modified:
   trunk/include/multimapwdef.h
Log:
g++ 4.7 patch for multimapwdef, retrieved from fedora pkgs repo

Modified: trunk/include/multimapwdef.h
===================================================================
--- trunk/include/multimapwdef.h	2012-07-31 15:39:24 UTC (rev 2712)
+++ trunk/include/multimapwdef.h	2012-08-06 22:40:17 UTC (rev 2713)
@@ -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;




More information about the sword-cvs mailing list