Skip to content

Commit 626ad6c

Browse files
authored
add null and is null macros for QgsFeatureId
1 parent ff41882 commit 626ad6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/qgsfeatureid.h

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ email : matthias@opengis.ch
2323

2424
// 64 bit feature ids
2525
typedef qint64 QgsFeatureId SIP_SKIP;
26+
#define FID_NULL std::numeric_limits<QgsFeatureId>::min()
27+
#define FID_IS_NULL(fid) (fid==std::numeric_limits<QgsFeatureId>::min())
2628
#define FID_IS_NEW(fid) (fid<0)
2729
#define FID_TO_NUMBER(fid) static_cast<qint64>(fid)
2830
#define FID_TO_STRING(fid) QString::number( fid )

0 commit comments

Comments
 (0)