(svn r22551) -Fix: Remove BaseStorageArrays from _changed_storage_arrays on destruction.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
frosch 13 years ago
parent 86f931a065
commit b2275b4093

@ -16,6 +16,14 @@
/** The changed storage arrays */
static std::set<BaseStorageArray*> _changed_storage_arrays;
/**
* Remove references to use.
*/
BaseStorageArray::~BaseStorageArray()
{
_changed_storage_arrays.erase(this);
}
/**
* Add the changed storage array to the list of changed arrays.
* This is done so we only have to revert/save the changed

@ -20,8 +20,7 @@
*/
struct BaseStorageArray
{
/** The needed destructor */
virtual ~BaseStorageArray() {}
virtual ~BaseStorageArray();
/**
* Clear the changes made since the last ClearChanges.

Loading…
Cancel
Save