Definition at line 52 of file qscopedpointer.h.
#include <qscopedpointer.h>
Static Public Member Functions |
|
| static void | cleanup (T *pointer) |
| static void cleanup | ( | T * | pointer | ) | [inline, static] |
Definition at line 54 of file qscopedpointer.h.
{
// Enforce a complete type.
// If you get a compile error here, read the secion on forward declared
// classes in the QScopedPointer documentation.
typedef char IsIncompleteType[ sizeof(T) ? 1 : -1 ];
(void) sizeof(IsIncompleteType);
delete pointer;
}