Skip to content
Permalink
Browse files

Make sure QgsApplication members are initialized to nullptr

Just in case there's unintended dependancies between the
registries
  • Loading branch information
nyalldawson committed Dec 28, 2016
1 parent 585d9db commit cfe42c2f8d390198421d82635ccb0a92aad42aae
Showing with 14 additions and 0 deletions.
  1. +14 −0 src/core/qgsapplication.cpp
@@ -113,6 +113,20 @@ const char* QgsApplication::QGIS_APPLICATION_NAME = "QGIS3";
*/
QgsApplication::QgsApplication( int & argc, char ** argv, bool GUIenabled, const QString& customConfigPath, const QString& platformName )
: QApplication( argc, argv, GUIenabled )
, mActionScopeRegistry( nullptr )
, mProfiler( nullptr )
, mTaskManager( nullptr )
, mFieldFormatterRegistry( nullptr )
, mColorSchemeRegistry( nullptr )
, mPaintEffectRegistry( nullptr )
, mRendererRegistry( nullptr )
, mSvgCache( nullptr )
, mSymbolLayerRegistry( nullptr )
, mRasterRendererRegistry( nullptr )
, mGpsConnectionRegistry( nullptr )
, mDataItemProviderRegistry( nullptr )
, mPluginLayerRegistry( nullptr )
, mMessageLog( nullptr )
{
sPlatformName = platformName;

0 comments on commit cfe42c2

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