return NULL;
// Set the list elements.
- for (int i = 0; i < sipCpp->Length(); ++i)
+ for (int i = 1; i <= sipCpp->Length(); ++i)
{
TYPE *t = new TYPE(sipCpp->Value(i));
PyObject *tobj;
return NULL;
}
- PyList_SET_ITEM(l, i, tobj);
+ PyList_SET_ITEM(l, i - 1, tobj);
}
return l;
return 1;
}
- NCollection_Sequence<TYPE> *ql = new NCollection_Sequence<TYPE>;
+ NCollection_Sequence<TYPE> *aSeq = new NCollection_Sequence<TYPE>;
len = PySequence_Size(sipPy);
for (SIP_SSIZE_T i = 0; i < len; ++i)
{
sipReleaseType(t, sipType_TYPE, state);
- delete ql;
+ delete aSeq;
return 0;
}
- ql->Append(*t);
+ aSeq->Append(*t);
sipReleaseType(t, sipType_TYPE, state);
}
- *sipCppPtr = ql;
+ *sipCppPtr = aSeq;
return sipGetState(sipTransferObj);
%End
return NULL;
// Set the list elements.
- for (int i = 0; i < sipCpp->Length(); ++i)
+ for (int i = 1; i <= sipCpp->Length(); ++i)
{
HYDROData_Entity* aPntr = createPointer(sipCpp->Value(i));
return NULL;
}
- PyList_SET_ITEM(l, i, tobj);
+ PyList_SET_ITEM(l, i - 1, tobj);
}
return l;
return 1;
}
- NCollection_Sequence<Handle_HYDROData_Entity> *ql =
+ NCollection_Sequence<Handle_HYDROData_Entity> *aSeq =
new NCollection_Sequence<Handle_HYDROData_Entity>;
len = PySequence_Size(sipPy);
{
sipReleaseType(t, sipType_HYDROData_Entity, state);
- delete ql;
+ delete aSeq;
return 0;
}
Handle_HYDROData_Entity anEnt( t );
- ql->Append( anEnt );
+ aSeq->Append( anEnt );
//sipReleaseType(t, sipType_HYDROData_Entity, state);
}
- *sipCppPtr = ql;
+ *sipCppPtr = aSeq;
return sipGetState(sipTransferObj);
%End