Skip to content
Snippets Groups Projects
Commit 49cc12a1 authored by Stéphane Albert's avatar Stéphane Albert
Browse files

ENH: Initialize pointers to NULL in otb::Wrapper QObject class.

parent 3b656f9b
No related branches found
No related tags found
No related merge requests found
......@@ -25,9 +25,15 @@ namespace otb
namespace Wrapper
{
QtWidgetChoiceParameter::QtWidgetChoiceParameter(ChoiceParameter* param, QtWidgetModel* m)
: QtWidgetParameterBase(param, m),
m_ChoiceParam(param)
QtWidgetChoiceParameter::QtWidgetChoiceParameter( ChoiceParameter* param,
QtWidgetModel* m ) :
QtWidgetParameterBase(param, m),
m_ChoiceParam(param),
m_ComboBox( NULL ),
m_StackWidget( NULL ),
m_VLayout( NULL ),
m_VLayoutGroup( NULL ),
m_WidgetList()
{
}
......@@ -64,8 +70,11 @@ void QtWidgetChoiceParameter::DoCreateWidget()
ParameterGroup::Pointer param = m_ChoiceParam->GetChoiceParameterGroupByIndex(i);
if (param.IsNotNull())
{
QtWidgetParameterBase* widget = QtWidgetParameterFactory::CreateQtWidget( param, GetModel() );
QtWidgetParameterBase* widget =
QtWidgetParameterFactory::CreateQtWidget( param, GetModel() );
m_StackWidget->addWidget(widget);
m_WidgetList.push_back(widget);
}
}
......
......@@ -22,8 +22,9 @@ namespace otb
namespace Wrapper
{
QtWidgetModel::QtWidgetModel(Application* app)
: m_Application(app)
QtWidgetModel::QtWidgetModel(Application* app) :
m_Application(app),
m_LogOutput()
{
// Init only if not already done
if(!m_Application->IsInitialized())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment