Skip to content

Commit cfe42c2

Browse files
committed
Make sure QgsApplication members are initialized to nullptr
Just in case there's unintended dependancies between the registries
1 parent 585d9db commit cfe42c2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/core/qgsapplication.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,20 @@ const char* QgsApplication::QGIS_APPLICATION_NAME = "QGIS3";
113113
*/
114114
QgsApplication::QgsApplication( int & argc, char ** argv, bool GUIenabled, const QString& customConfigPath, const QString& platformName )
115115
: QApplication( argc, argv, GUIenabled )
116+
, mActionScopeRegistry( nullptr )
117+
, mProfiler( nullptr )
118+
, mTaskManager( nullptr )
119+
, mFieldFormatterRegistry( nullptr )
120+
, mColorSchemeRegistry( nullptr )
121+
, mPaintEffectRegistry( nullptr )
122+
, mRendererRegistry( nullptr )
123+
, mSvgCache( nullptr )
124+
, mSymbolLayerRegistry( nullptr )
125+
, mRasterRendererRegistry( nullptr )
126+
, mGpsConnectionRegistry( nullptr )
127+
, mDataItemProviderRegistry( nullptr )
128+
, mPluginLayerRegistry( nullptr )
129+
, mMessageLog( nullptr )
116130
{
117131
sPlatformName = platformName;
118132

0 commit comments

Comments
 (0)