mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
parent
ea0ce4ec1e
commit
0559939725
@ -249,13 +249,13 @@ class QgsFields
|
|||||||
|
|
||||||
//! Get field at particular index (must be in range 0..N-1)
|
//! Get field at particular index (must be in range 0..N-1)
|
||||||
// const QgsField& operator[]( int i ) const;
|
// const QgsField& operator[]( int i ) const;
|
||||||
QgsField& operator[](int i);
|
QgsField& operator[](int i) /Factory/;
|
||||||
%MethodCode
|
%MethodCode
|
||||||
SIP_SSIZE_T idx = sipConvertFromSequenceIndex(a0, sipCpp->count());
|
SIP_SSIZE_T idx = sipConvertFromSequenceIndex(a0, sipCpp->count());
|
||||||
if (idx < 0)
|
if (idx < 0)
|
||||||
sipIsErr = 1;
|
sipIsErr = 1;
|
||||||
else
|
else
|
||||||
sipRes = &(*sipCpp)[idx];
|
sipRes = new QgsField(sipCpp->operator[](idx));
|
||||||
%End
|
%End
|
||||||
|
|
||||||
//! Get field at particular index (must be in range 0..N-1)
|
//! Get field at particular index (must be in range 0..N-1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user