|
|
little helper class to clean up static objects that are held as pointer.
A typical use is static KStaticDeleter<MyClass> sd;
MyClass::self() { if (!_self) { _self = sd.setObject(new MyClass()); } }
|
type * |
sets the object to delete and registers the object to be deleted to KGlobal. if the given object is 0, the former registration is unregistred
Parameters:
void |
[virtual]
Reimplemented from KStaticDeleterBase.
~ |
[virtual]
Generated by: baudens@ke.mandrakesoft.com on Thu Oct 26 17:36:19 2000, using kdoc 2.0a40. |