Commit a60f2984 authored by David C. Lonie's avatar David C. Lonie Committed by Code Review
Browse files

Merge topic 'debug-leaks-type-template' into master

179864e2 Fix vtkDebugLeaks when templated classes are used.
parents fd0863d6 179864e2
......@@ -309,8 +309,9 @@ vtkObjectFactory* vtkLoad() \
VTK_OBJECT_FACTORY_NEW_BODY(thisClass)
#elif defined(VTK_DEBUG_LEAKS)
# define VTK_STANDARD_NEW_BODY(thisClass) \
vtkObjectFactory::ConstructInstance(#thisClass); \
return new thisClass;
thisClass *result = new thisClass; \
vtkObjectFactory::ConstructInstance(result->GetClassName()); \
return result;
#else
# define VTK_STANDARD_NEW_BODY(thisClass) \
return new thisClass;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment