mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1260 Replaced assert() with CAF_ASSERT() in AppFwk
This commit is contained in:
@@ -39,7 +39,6 @@
|
||||
#include "cafPdmUiFieldEditorHandle.h"
|
||||
#include "cafPdmUiTableViewModel.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
|
||||
namespace caf
|
||||
@@ -68,7 +67,7 @@ PdmUiTableViewDelegate::~PdmUiTableViewDelegate()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QWidget * PdmUiTableViewDelegate::createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const
|
||||
{
|
||||
assert(m_model);
|
||||
CAF_ASSERT(m_model);
|
||||
QWidget* editorWidget = m_model->getEditorWidgetAndTransferOwnership(parent, index);
|
||||
|
||||
connect( editorWidget, SIGNAL(destroyed(QObject*)), SLOT(slotEditorDestroyed(QObject*)));
|
||||
|
||||
Reference in New Issue
Block a user