Commit 45536646 authored by Shawn Waldon's avatar Shawn Waldon
Browse files

Remove use of nullptr

parent e427dbbb
...@@ -74,7 +74,7 @@ struct QVTKWidgetInsideQWidgets ...@@ -74,7 +74,7 @@ struct QVTKWidgetInsideQWidgets
//delete widget2; //delete widget2;
} }
QVTKWidget* spawnSubwidget( QTabWidget* tabWidget,QVTKWidget* qvtk=nullptr) QVTKWidget* spawnSubwidget( QTabWidget* tabWidget,QVTKWidget* qvtk=NULL)
{ {
if(!mainWindow) if(!mainWindow)
mainWindow = new QMainWindow(); mainWindow = new QMainWindow();
...@@ -88,7 +88,7 @@ struct QVTKWidgetInsideQWidgets ...@@ -88,7 +88,7 @@ struct QVTKWidgetInsideQWidgets
return qvtk; return qvtk;
} }
QVTKWidget* spawnSubwidget(QMainWindow* mainWin,QVTKWidget* qvtk = nullptr) QVTKWidget* spawnSubwidget(QMainWindow* mainWin,QVTKWidget* qvtk = NULL)
{ {
mainWindow = mainWin; mainWindow = mainWin;
if (!qvtk) if (!qvtk)
...@@ -99,7 +99,7 @@ struct QVTKWidgetInsideQWidgets ...@@ -99,7 +99,7 @@ struct QVTKWidgetInsideQWidgets
return qvtk; return qvtk;
} }
QVTKWidget* spawnSubwidget(QDockWidget* dock,QVTKWidget* qvtk = nullptr) QVTKWidget* spawnSubwidget(QDockWidget* dock,QVTKWidget* qvtk = NULL)
{ {
if (!mainWindow) if (!mainWindow)
mainWindow = new QMainWindow(); mainWindow = new QMainWindow();
...@@ -156,4 +156,4 @@ int TestWin32QVTKWidget(int argc, char* argv[]) ...@@ -156,4 +156,4 @@ int TestWin32QVTKWidget(int argc, char* argv[])
return EXIT_FAILURE; return EXIT_FAILURE;
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment