summaryrefslogtreecommitdiff
path: root/Lib/octave/std_map.i
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/octave/std_map.i')
-rw-r--r--Lib/octave/std_map.i14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/octave/std_map.i b/Lib/octave/std_map.i
index a54e5f753..20003df58 100644
--- a/Lib/octave/std_map.i
+++ b/Lib/octave/std_map.i
@@ -22,7 +22,7 @@
/*
int res = SWIG_ERROR;
if (PyDict_Check(obj)) {
- PyObject_var items = PyObject_CallMethod(obj,(char *)"items",NULL);
+ SwigVar_PyObject items = PyObject_CallMethod(obj,(char *)"items",NULL);
res = traits_asptr_stdseq<std::map<K,T>, std::pair<K, T> >::asptr(items, val);
} else {
map_type *p;
@@ -58,8 +58,8 @@
}
PyObject *obj = PyDict_New();
for (const_iterator i= map.begin(); i!= map.end(); ++i) {
- swig::PyObject_var key = swig::from(i->first);
- swig::PyObject_var val = swig::from(i->second);
+ swig::SwigVar_PyObject key = swig::from(i->first);
+ swig::SwigVar_PyObject val = swig::from(i->second);
PyDict_SetItem(obj, key, val);
}
return obj;
@@ -92,10 +92,10 @@
};
template<class OutIterator, class FromOper, class ValueType = typename OutIterator::value_type>
- struct OctMapIterator_T : PySwigIteratorClosed_T<OutIterator, ValueType, FromOper>
+ struct OctMapIterator_T : SwigPyIteratorClosed_T<OutIterator, ValueType, FromOper>
{
OctMapIterator_T(OutIterator curr, OutIterator first, OutIterator last, octave_value seq)
- : PySwigIteratorClosed_T<OutIterator,ValueType,FromOper>(curr, first, last, seq)
+ : SwigPyIteratorClosed_T<OutIterator,ValueType,FromOper>(curr, first, last, seq)
{
}
};
@@ -112,7 +112,7 @@
};
template<typename OutIter>
- inline PySwigIterator*
+ inline SwigPyIterator*
make_output_key_iterator(const OutIter& current, const OutIter& begin, const OutIter& end, octave_value seq = octave_value())
{
return new OctMapKeyIterator_T<OutIter>(current, begin, end, seq);
@@ -130,7 +130,7 @@
template<typename OutIter>
- inline PySwigIterator*
+ inline SwigPyIterator*
make_output_value_iterator(const OutIter& current, const OutIter& begin, const OutIter& end, octave_value seq = 0)
{
return new OctMapValueIterator_T<OutIter>(current, begin, end, seq);