aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/conversions.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-03-16 14:15:44 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-03-18 19:45:07 -0300
commiteb27a7968d34b6fd7f46324bab313ee5956f8c74 (patch)
tree32406a84536e6d933fa23085183d58e2a84ddf0f /libshiboken/conversions.h
parent12a36f7c83326c22b46cbc4d6ce7c76c545826a7 (diff)
Just try to reduce a bit the noise in source code caused by the use of templates.
Diffstat (limited to 'libshiboken/conversions.h')
-rw-r--r--libshiboken/conversions.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/libshiboken/conversions.h b/libshiboken/conversions.h
index 110d49857..2d09ac07f 100644
--- a/libshiboken/conversions.h
+++ b/libshiboken/conversions.h
@@ -606,11 +606,9 @@ struct StdMapConverter
typename StdMap::const_iterator it = cppobj.begin();
for (; it != cppobj.end(); ++it) {
- typename StdMap::key_type h_key((*it).first);
- typename StdMap::mapped_type h_val((*it).second);
PyDict_SetItem(result,
- Converter<typename StdMap::key_type>::toPython(h_key),
- Converter<typename StdMap::mapped_type>::toPython(h_val));
+ Converter<typename StdMap::key_type>::toPython(it->first),
+ Converter<typename StdMap::mapped_type>::toPython(it->second));
}
return result;