#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
@@ -46,8 +46,6 @@
#include <QAction>
#include <assert.h>
namespace caf
{
@@ -129,7 +127,7 @@ std::pair<CmdFeature*, size_t> CmdFeatureManager::createFeature(const std::strin
}
CmdFeature* feature = CommandFeatureFactory::instance()->create(commandId);
assert(feature); // The command ID is not known in the factory
CAF_ASSERT(feature); // The command ID is not known in the factory
feature->setParent(this);
size_t index = m_commandFeatures.size();