home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2002 April / Game.EXE_04_2002.iso / Alawar / PictureFormatManagerPtr.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2002-02-25  |  378 b   |  22 lines

  1. #include "PictureFormatManagerPtr.h"
  2. #include "PictureFormatManager.h"
  3. #include "safe_new.h"
  4.  
  5. PictureFormatManager * PictureFormatManagerPtr::pfm= 0;
  6.  
  7.  
  8. void PictureFormatManagerPtr::destroy()
  9. {
  10.     delete pfm; pfm = 0;
  11. }
  12.  
  13.  
  14. PictureFormatManager * PictureFormatManagerPtr::operator->()const
  15. {
  16.     if( !pfm )
  17.     {
  18.         pfm = new PictureFormatManager();
  19.     }
  20.     return pfm;
  21. }
  22.