Skip to content

Commit

Permalink
Avoid use of CAF_ASSERT in application code
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Mar 10, 2017
1 parent c3bf064 commit a87ad2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions ApplicationCode/Commands/RicDeleteSubItemsFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "RimSummaryPlotCollection.h"
#include "RimWellPathCollection.h"

#include "cafAssert.h"
#include "cafPdmUiItem.h"
#include "cafSelectionManager.h"

Expand Down Expand Up @@ -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)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@

#include "cafCmdAddItemFeature.h"

#include "cafAssert.h"
#include "cafCmdAddItemExec.h"
#include "cafCmdAddItemExecData.h"
#include "cafCmdFeatureManager.h"
Expand All @@ -49,6 +48,8 @@
#include "cafPdmChildArrayField.h"
#include "cafPdmField.h"

#include "cvfAssert.h"

#include <QAction>


Expand Down Expand Up @@ -108,7 +109,7 @@ void CmdAddItemFeature::onActionTriggered(bool isChecked)
}
else
{
CAF_ASSERT(0);
CVF_ASSERT(0);
}
}
}
Expand Down

0 comments on commit a87ad2e

Please sign in to comment.