App::PropertyCleaner Struct Reference

The PropertyCleaner struct Make deleting dynamic property safer by postponing its destruction. More...

Public Member Functions

 PropertyCleaner (Property *p)
 
 ~PropertyCleaner ()
 

Static Public Member Functions

static void add (Property *prop)
 

Public Attributes

Propertyprop
 

Detailed Description

The PropertyCleaner struct Make deleting dynamic property safer by postponing its destruction.

Dynamic property can be removed at any time, even during triggering of onChanged() signal of the removing property. This patch introduced static function Property::destroy() to make it safer by queueing any removed property, and only deleting them when no onChanged() call is active.

Constructor & Destructor Documentation

◆ PropertyCleaner()

App::PropertyCleaner::PropertyCleaner ( Property p)

◆ ~PropertyCleaner()

App::PropertyCleaner::~PropertyCleaner ( )

References prop.

Member Function Documentation

◆ add()

static void App::PropertyCleaner::add ( Property prop)
static

References prop.

Referenced by App::Property::destroy().

Member Data Documentation

◆ prop


The documentation for this struct was generated from the following file: