Skip to content

Commit

Permalink
Add nullCrs for more performanct (de)initialisation of a default cons…
Browse files Browse the repository at this point in the history
…tructed CRS
  • Loading branch information
m-kuhn authored and nyalldawson committed Dec 29, 2020
1 parent 1a716ce commit 7e0f58f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/qgscoordinatereferencesystem.cpp
Expand Up @@ -111,7 +111,9 @@ QString getFullProjString( PJ *obj )

QgsCoordinateReferenceSystem::QgsCoordinateReferenceSystem()
{
d = new QgsCoordinateReferenceSystemPrivate();
static QgsCoordinateReferenceSystem nullCrs = QgsCoordinateReferenceSystem( QString() );

d = nullCrs.d;
}

QgsCoordinateReferenceSystem::QgsCoordinateReferenceSystem( const QString &definition )
Expand Down

0 comments on commit 7e0f58f

Please sign in to comment.