Commit d1c6ef71 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov
parent 04ccdada
...@@ -24,7 +24,7 @@ namespace NSEditorApi ...@@ -24,7 +24,7 @@ namespace NSEditorApi
class IMenuEventDataBase class IMenuEventDataBase
{ {
protected: protected:
ULONG m_lRef; unsigned int m_lRef;
public: public:
IMenuEventDataBase() IMenuEventDataBase()
...@@ -36,14 +36,14 @@ namespace NSEditorApi ...@@ -36,14 +36,14 @@ namespace NSEditorApi
{ {
} }
virtual ULONG AddRef() virtual unsigned int AddRef()
{ {
++m_lRef; ++m_lRef;
return m_lRef; return m_lRef;
} }
virtual ULONG Release() virtual unsigned int Release()
{ {
ULONG ret = --m_lRef; unsigned int ret = --m_lRef;
if (0 == m_lRef) if (0 == m_lRef)
delete this; delete this;
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment