[pywin32-checkins] pywin32/isapi/src ControlBlock.h,1.4,1.5
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2007-03-07 01:52:50
|
Update of /cvsroot/pywin32/pywin32/isapi/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17588/src Modified Files: ControlBlock.h Log Message: Remove unused copy constructors etc, which are unused and would have undesirable side effects if used. Index: ControlBlock.h =================================================================== RCS file: /cvsroot/pywin32/pywin32/isapi/src/ControlBlock.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ControlBlock.h 4 Jan 2007 08:19:59 -0000 1.4 --- ControlBlock.h 7 Mar 2007 01:52:46 -0000 1.5 *************** *** 8,37 **** { public: ! CControlBlock(EXTENSION_CONTROL_BLOCK *pECB=NULL) : m_pECB(pECB) { } - ~CControlBlock() { } ! ! CControlBlock(const CControlBlock & rhs) ! { ! Copy(rhs); ! } ! ! CControlBlock & operator=(const CControlBlock & rhs) ! { ! if (this != &rhs) ! Copy(rhs); ! return *this; } - // member retrieval functions - - EXTENSION_CONTROL_BLOCK * GetECB(void) { return m_pECB; } --- 8,27 ---- { public: ! CControlBlock(EXTENSION_CONTROL_BLOCK *pECB) : m_pECB(pECB) { + assert(pECB); } ~CControlBlock() { } ! void Done() { ! assert(m_pECB); // destructed more than once? ! m_pECB = NULL; } // member retrieval functions EXTENSION_CONTROL_BLOCK * GetECB(void) { + assert(m_pECB); return m_pECB; } *************** *** 153,163 **** private: EXTENSION_CONTROL_BLOCK * m_pECB; // IIS control block - private: - - void Copy(const CControlBlock & rhs) - { - m_pECB = rhs.m_pECB; - } }; ! #endif // __CONTROL_BLOCK_H__ \ No newline at end of file --- 143,147 ---- private: EXTENSION_CONTROL_BLOCK * m_pECB; // IIS control block }; ! #endif // __CONTROL_BLOCK_H__ |