krita
KisSharedPtrVector< T > Class Template Reference
#include <kis_shared_ptr_vector.h>
Inherits QValueVector< KSharedPtr< T > >.
Detailed Description
template<class T>
class KisSharedPtrVector< T >
QValueVector does not always destroy an element when it is erased.
If the items it is holding are KSharedPtr, this can result in hidden references to objects that cannot be accounted for. This class sets the KSharedPtr to 0 on erase, which dereferences the object as expected.
Definition at line 34 of file kis_shared_ptr_vector.h.
The documentation for this class was generated from the following file: