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

(cherry picked from commit 7e0f58f)
  • Loading branch information
m-kuhn authored and nyalldawson committed Jan 15, 2021
1 parent c70c298 commit b79f618
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 b79f618

Please sign in to comment.