Destruction of status.

This commit is contained in:
Matej Sekoranja
2010-12-20 19:47:36 +01:00
parent f522fe8e07
commit e06ff2b898
3 changed files with 6 additions and 5 deletions

View File

@@ -67,7 +67,7 @@ class StatusImpl : public Status
totalConstruct++;
}
~StatusImpl() {
virtual ~StatusImpl() {
Lock xx(globalMutex);
totalDestruct++;
}

View File

@@ -20,11 +20,11 @@ namespace epics { namespace pvData {
*/
virtual void destroy() = 0;
private:
protected:
/**
* Do not allow delete on this instance.
* Do not allow delete on this instance and derived classes, destroy() must be used instead.
*/
//~Destroyable() {};
virtual ~Destroyable() {};
};
}}

View File

@@ -35,7 +35,8 @@ namespace epics { namespace pvData {
*/
class Status : public epics::pvData::Serializable {
public:
virtual ~Status() {};
/**
* Get status type.
* @return status type, non-<code>null</code>.