X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/6e760aa65535b807a02ca575a1ae6716d76e8f9d..0f2685f4c5daa1ced4fc9454ddb467e1396bcb91:/include/connection.h diff --git a/include/connection.h b/include/connection.h index 8ca75cb9..870fd85b 100644 --- a/include/connection.h +++ b/include/connection.h @@ -4,14 +4,12 @@ #include #include -class eConnection: public virtual iObject, public Connection +class eConnection: public iObject, public Connection { - int ref; + DECLARE_REF(eConnection); ePtr m_owner; public: -DEFINE_REF(eConnection); -public: - eConnection(iObject *owner, const Connection &conn): Connection(conn), ref(0), m_owner(owner) { }; + eConnection(iObject *owner, const Connection &conn): Connection(conn), m_owner(owner) { }; virtual ~eConnection() { disconnect(); } };