CBaseGloabl.cpp 357 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #include "pch.h"
  2. #include "CBaseGloabl.h"
  3. CBaseGloabl::CBaseGloabl()
  4. {
  5. m_Ref = 0;
  6. }
  7. CBaseGloabl::~CBaseGloabl(void)
  8. {
  9. }
  10. IBaseCurl* CBaseGloabl::GetBaseCurlInstance()
  11. {
  12. return NULL;
  13. }
  14. INT CBaseGloabl::AddRef()
  15. {
  16. return ++m_Ref;
  17. }
  18. INT CBaseGloabl::Release()
  19. {
  20. --m_Ref;
  21. if (m_Ref == 0)
  22. {
  23. delete this;
  24. return 0;
  25. }
  26. return m_Ref;
  27. }