Skip to content
Permalink
Browse files

Finalize FID_NULL

  • Loading branch information
m-kuhn committed Oct 2, 2018
1 parent 626ad6c commit c35ea6e7ba14dc280b38b0383d37356bfd22af5d
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/core/qgsfeatureid.h
@@ -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;

0 comments on commit c35ea6e

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