File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ email : matthias@opengis.ch
24
24
// 64 bit feature ids
25
25
typedef qint64 QgsFeatureId SIP_SKIP;
26
26
#define FID_NULL std::numeric_limits<QgsFeatureId>::min()
27
- #define FID_IS_NULL (fid ) (fid== std::numeric_limits<QgsFeatureId>::min())
28
- #define FID_IS_NEW (fid ) (fid< 0 )
29
- #define FID_TO_NUMBER (fid ) static_cast <qint64>(fid)
30
- #define FID_TO_STRING (fid ) QString::number( fid )
31
- #define STRING_TO_FID (str ) (str).toLongLong()
27
+ #define FID_IS_NULL (fid ) ( fid == std::numeric_limits<QgsFeatureId>::min() )
28
+ #define FID_IS_NEW (fid ) ( fid < 0 && fid != std::numeric_limits<QgsFeatureId>::min() )
29
+ #define FID_TO_NUMBER (fid ) static_cast <qint64>( fid )
30
+ #define FID_TO_STRING (fid ) ( fid != std::numeric_limits<QgsFeatureId>::min() ? QString::number( fid ) : QStringLiteral( " NULL " ) )
31
+ #define STRING_TO_FID (str ) ( ( fid != QLatin1String( " NULL " ) ) ? ( str).toLongLong() : std::numeric_limits<QgsFeatureId>::min() )
32
32
33
33
#ifndef SIP_RUN
34
34
typedef QSet<QgsFeatureId> QgsFeatureIds;
You can’t perform that action at this time.
0 commit comments