Navigation Menu

Skip to content

Commit

Permalink
add null and is null macros for QgsFeatureId
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Oct 1, 2018
1 parent ff41882 commit 626ad6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsfeatureid.h
Expand Up @@ -23,6 +23,8 @@ email : matthias@opengis.ch

// 64 bit feature ids
typedef qint64 QgsFeatureId SIP_SKIP;
#define FID_NULL std::numeric_limits<QgsFeatureId>::min()
#define FID_IS_NULL(fid) (fid==std::numeric_limits<QgsFeatureId>::min())
#define FID_IS_NEW(fid) (fid<0)
#define FID_TO_NUMBER(fid) static_cast<qint64>(fid)
#define FID_TO_STRING(fid) QString::number( fid )
Expand Down

0 comments on commit 626ad6c

Please sign in to comment.