Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
add null and is null macros for QgsFeatureId
- Loading branch information
Showing
with
2 additions
and
0 deletions.
-
+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 ) |
|
|