mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 07:26:03 -06:00
Avoid use of CAF_ASSERT in application code
This commit is contained in:
parent
c3bf064661
commit
a87ad2e56e
@ -21,7 +21,6 @@
|
||||
#include "RimSummaryPlotCollection.h"
|
||||
#include "RimWellPathCollection.h"
|
||||
|
||||
#include "cafAssert.h"
|
||||
#include "cafPdmUiItem.h"
|
||||
#include "cafSelectionManager.h"
|
||||
|
||||
@ -58,7 +57,7 @@ void RicDeleteSubItemsFeature::onActionTriggered(bool isChecked)
|
||||
std::vector<caf::PdmUiItem*> items;
|
||||
caf::SelectionManager::instance()->selectedItems(items);
|
||||
|
||||
CAF_ASSERT(items.size() > 0);
|
||||
CVF_ASSERT(items.size() > 0);
|
||||
|
||||
for (auto item : items)
|
||||
{
|
||||
|
@ -37,7 +37,6 @@
|
||||
|
||||
#include "cafCmdAddItemFeature.h"
|
||||
|
||||
#include "cafAssert.h"
|
||||
#include "cafCmdAddItemExec.h"
|
||||
#include "cafCmdAddItemExecData.h"
|
||||
#include "cafCmdFeatureManager.h"
|
||||
@ -49,6 +48,8 @@
|
||||
#include "cafPdmChildArrayField.h"
|
||||
#include "cafPdmField.h"
|
||||
|
||||
#include "cvfAssert.h"
|
||||
|
||||
#include <QAction>
|
||||
|
||||
|
||||
@ -108,7 +109,7 @@ void CmdAddItemFeature::onActionTriggered(bool isChecked)
|
||||
}
|
||||
else
|
||||
{
|
||||
CAF_ASSERT(0);
|
||||
CVF_ASSERT(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user