comparison generator/abstractmetabuilder.cpp @ 354:18bd68f586c6

removed superfluous destructors
author Max Samukha <maxter@spambox.com>
date Mon, 24 May 2010 23:43:30 +0300
parents ae34188ddd84
children beb04f46ef4a
comparison
equal deleted inserted replaced
353:0a671b1382d7 354:18bd68f586c6
1308 } else if (meta_function->isConstructor() && !meta_function->isPrivate()) { 1308 } else if (meta_function->isConstructor() && !meta_function->isPrivate()) {
1309 *meta_class -= AbstractMetaAttributes::Final; 1309 *meta_class -= AbstractMetaAttributes::Final;
1310 meta_class->setHasNonPrivateConstructor(true); 1310 meta_class->setHasNonPrivateConstructor(true);
1311 } 1311 }
1312 1312
1313 // Classes with virtual destructors should always have a shell class
1314 // (since we aren't registering the destructors, we need this extra check)
1315 if (meta_function->isDestructor() && !meta_function->isFinal()) 1313 if (meta_function->isDestructor() && !meta_function->isFinal())
1316 meta_class->setForceShellClass(true); 1314 meta_class->setHasVirtualDestructor(true);
1317 1315
1318 if (!meta_function->isDestructor() 1316 if (!meta_function->isDestructor()
1319 && !meta_function->isInvalid() 1317 && !meta_function->isInvalid()
1320 && (!meta_function->isConstructor() || !meta_function->isPrivate())) { 1318 && (!meta_function->isConstructor() || !meta_function->isPrivate())) {
1321 1319