File: 008_fix_gcc4.7_FTBFS.patch

package info (click to toggle)
kawari8 8.2.8-12.1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 1,992 kB
  • sloc: cpp: 10,933; ruby: 90; sh: 29; makefile: 17
file content (20 lines) | stat: -rw-r--r-- 838 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/build/src/misc/mmap.h
+++ b/build/src/misc/mmap.h
@@ -28,7 +28,7 @@
 		// 2001/12/16 suikyo@yk.rim.or.jp : imortal entry bug
 //		if(it==end()) it=insert(pair<KeyType,DataType>(key,DataType()));
 //		if(it==upper_bound(key)) it=insert(pair<const KeyType,DataType>(key,DataType()));
-		if(it==std::multimap<KeyType, DataType>::upper_bound(key)) it=insert(typename TMMap<KeyType,DataType>::value_type(key,DataType()));
+		if(it==std::multimap<KeyType, DataType>::upper_bound(key)) it=this->insert(typename TMMap<KeyType,DataType>::value_type(key,DataType()));
 		return((*it).second);
 	}
 /*
@@ -43,7 +43,7 @@
 	void Add(const KeyType& key,const DataType& data)
 	{
 //		insert(pair<const KeyType,DataType>(key,data));
-		insert(typename TMMap::value_type(key,data));
+		this->insert(typename TMMap::value_type(key,data));
 	}
 
 };