#1260 Replaced assert() with CAF_ASSERT() in AppFwk

This commit is contained in:
Magne Sjaastad
2017-03-08 08:19:51 +01:00
parent a16a0a3bb5
commit 6791600d03
63 changed files with 198 additions and 220 deletions

View File

@@ -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*)));