Skip to content
Permalink
Browse files

add null and is null macros for QgsFeatureId

  • Loading branch information
3nids committed Oct 1, 2018
1 parent ff41882 commit 626ad6cf47892b174b09bcb0ca34be5c19fed975
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/qgsfeatureid.h
@@ -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 )

0 comments on commit 626ad6c

Please sign in to comment.
You can’t perform that action at this time.