diff --git a/src/App/Extension.cpp b/src/App/Extension.cpp index c84e613de4..25a6032a2e 100644 --- a/src/App/Extension.cpp +++ b/src/App/Extension.cpp @@ -54,7 +54,7 @@ App::PropertyData App::Extension::propertyData; void App::Extension::init() { - assert(Extension::classTypeId == Base::Type::badType() && "don't init() twice!"); + assert(Extension::classTypeId.isBad() && "don't init() twice!"); /* Set up entry in the type system. */ Extension::classTypeId = @@ -187,11 +187,11 @@ void Extension::initExtensionSubclass(Base::Type& toInit, Base::Type::instantiationMethod method) { // don't init twice! - assert(toInit == Base::Type::badType()); + assert(toInit.isBad()); // get the parent class Base::Type parentType(Base::Type::fromName(ParentName)); // forgot init parent! - assert(parentType != Base::Type::badType()); + assert(!parentType.isBad()); // create the new type toInit = Base::Type::createType(parentType, ClassName, method);