File gnome-commander-gcc47.patch of Package gnome-commander
From a8cf386412f9c287d7d96dc1762d7b0f247d8908 Mon Sep 17 00:00:00 2001
From: Mamoru Tasaka <mtasaka@fedoraproject.org>
Date: Thu, 05 Jan 2012 20:20:53 +0000
Subject: Fix for gcc-4.7 compiling problem
---
diff --git a/src/dict.h b/src/dict.h
index 229fe4a..0d21a3b 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;
--
cgit v0.9.0.2