[gnome-commander/gcmd-1-2-8] Fix for gcc-4.7 compiling problem



commit 997c18a98fbf41aff39048ce8a79238f64d952e8
Author: Mamoru Tasaka <mtasaka fedoraproject org>
Date:   Thu Jan 5 21:20:53 2012 +0100

    Fix for gcc-4.7 compiling problem

 src/dict.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/dict.h b/src/dict.h
index 7264099..fbdaa63 100644
--- a/src/dict.h
+++ b/src/dict.h
@@ -55,8 +55,8 @@ class DICT
 template <typename KEY, typename VAL>
 inline void DICT<KEY,VAL>::add(const KEY k, const VAL &v)
 {
-    std::pair<typename KEY_COLL::iterator,bool> k_pos = k_coll.insert(make_pair(k,(const VAL *) NULL));
-    std::pair<typename VAL_COLL::iterator,bool> v_pos = v_coll.insert(make_pair(v,(const KEY *) NULL));
+    std::pair<typename KEY_COLL::iterator,bool> k_pos = k_coll.insert(std::make_pair(k,(const VAL *) NULL));
+    std::pair<typename VAL_COLL::iterator,bool> v_pos = v_coll.insert(std::make_pair(v,(const KEY *) NULL));
 
     if (k_pos.second)
         k_pos.first->second = &v_pos.first->first;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]