Navigation Menu

Skip to content

Commit

Permalink
Finalize FID_NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 2, 2018
1 parent 626ad6c commit c35ea6e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/qgsfeatureid.h
Expand Up @@ -24,11 +24,11 @@ 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 )
#define STRING_TO_FID(str) (str).toLongLong()
#define FID_IS_NULL(fid) ( fid == std::numeric_limits<QgsFeatureId>::min() )
#define FID_IS_NEW(fid) ( fid < 0 && fid != std::numeric_limits<QgsFeatureId>::min() )
#define FID_TO_NUMBER(fid) static_cast<qint64>( fid )
#define FID_TO_STRING(fid) ( fid != std::numeric_limits<QgsFeatureId>::min() ? QString::number( fid ) : QStringLiteral( "NULL" ) )
#define STRING_TO_FID(str) ( ( fid != QLatin1String( "NULL" ) ) ? (str).toLongLong() : std::numeric_limits<QgsFeatureId>::min() )

#ifndef SIP_RUN
typedef QSet<QgsFeatureId> QgsFeatureIds;
Expand Down

0 comments on commit c35ea6e

Please sign in to comment.