mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Set all pointers in RiaApplication to null in constructor initialisation list
This commit is contained in:
parent
0cc1b256b2
commit
4c5ffffd60
@ -179,6 +179,12 @@ bool RiaApplication::notify(QObject* receiver, QEvent* event)
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RiaApplication::RiaApplication(int& argc, char** argv)
|
RiaApplication::RiaApplication(int& argc, char** argv)
|
||||||
: QApplication(argc, argv)
|
: QApplication(argc, argv)
|
||||||
|
, m_socketServer(nullptr)
|
||||||
|
, m_workerProcess(nullptr)
|
||||||
|
, m_preferences(nullptr)
|
||||||
|
, m_runningWorkerProcess(false)
|
||||||
|
, m_mainWindow(nullptr)
|
||||||
|
, m_mainPlotWindow(nullptr)
|
||||||
{
|
{
|
||||||
// USed to get registry settings in the right place
|
// USed to get registry settings in the right place
|
||||||
QCoreApplication::setOrganizationName(RI_COMPANY_NAME);
|
QCoreApplication::setOrganizationName(RI_COMPANY_NAME);
|
||||||
@ -209,7 +215,6 @@ RiaApplication::RiaApplication(int& argc, char** argv)
|
|||||||
setWindowIcon(QIcon(":/AppLogo48x48.png"));
|
setWindowIcon(QIcon(":/AppLogo48x48.png"));
|
||||||
|
|
||||||
m_socketServer = new RiaSocketServer(this);
|
m_socketServer = new RiaSocketServer(this);
|
||||||
m_workerProcess = nullptr;
|
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
m_startupDefaultDirectory = QDir::homePath();
|
m_startupDefaultDirectory = QDir::homePath();
|
||||||
@ -223,11 +228,6 @@ RiaApplication::RiaApplication(int& argc, char** argv)
|
|||||||
// instead of using the application font
|
// instead of using the application font
|
||||||
m_standardFont = RiaFontCache::getFont(RiaFontCache::FONT_SIZE_8);
|
m_standardFont = RiaFontCache::getFont(RiaFontCache::FONT_SIZE_8);
|
||||||
|
|
||||||
m_runningWorkerProcess = false;
|
|
||||||
|
|
||||||
m_mainWindow = nullptr;
|
|
||||||
m_mainPlotWindow = nullptr;
|
|
||||||
|
|
||||||
m_recentFileActionProvider = std::unique_ptr<RiuRecentFileActionProvider>(new RiuRecentFileActionProvider);
|
m_recentFileActionProvider = std::unique_ptr<RiuRecentFileActionProvider>(new RiuRecentFileActionProvider);
|
||||||
|
|
||||||
// Create main windows
|
// Create main windows
|
||||||
|
Loading…
Reference in New Issue
Block a user