Skip to content

Commit

Permalink
No string to fid null conversion for now
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 2, 2018
1 parent c35ea6e commit 1210dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsfeatureid.h
Expand Up @@ -28,7 +28,7 @@ typedef qint64 QgsFeatureId SIP_SKIP;
#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() )
#define STRING_TO_FID(str) ( (str).toLongLong() )

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

0 comments on commit 1210dca

Please sign in to comment.