mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Strip nullptr inequality check
This commit is contained in:
parent
70ae6362de
commit
58f8e7658c
@ -407,7 +407,7 @@ bool QgsMssqlFeatureIterator::fetchFeature( QgsFeature &feature )
|
||||
if ( !ar.isEmpty() )
|
||||
{
|
||||
std::unique_ptr<QgsAbstractGeometry> geom = mParser.parseSqlGeometry( reinterpret_cast< unsigned char * >( ar.data() ), ar.size() );
|
||||
if ( geom != nullptr )
|
||||
if ( geom )
|
||||
{
|
||||
feature.setGeometry( QgsGeometry( std::move( geom ) ) );
|
||||
}
|
||||
|
@ -772,7 +772,7 @@ void QgsMssqlProvider::UpdateStatistics( bool estimate ) const
|
||||
{
|
||||
QByteArray ar = query.value( 0 ).toByteArray();
|
||||
std::unique_ptr<QgsAbstractGeometry> geom = mParser.parseSqlGeometry( reinterpret_cast< unsigned char * >( ar.data() ), ar.size() );
|
||||
if ( geom != nullptr )
|
||||
if ( geom )
|
||||
{
|
||||
QgsRectangle rect = geom->boundingBox();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user