Skip to content
Permalink
Browse files

Add nullCrs for more performanct (de)initialisation of a default cons…

…tructed CRS
  • Loading branch information
m-kuhn authored and nyalldawson committed Dec 29, 2020
1 parent 1a716ce commit 7e0f58ff7465cbf300fe6dfa238669431e26f0ed
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/qgscoordinatereferencesystem.cpp
@@ -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 )

0 comments on commit 7e0f58f

Please sign in to comment.
You can’t perform that action at this time.