equal
deleted
inserted
replaced
1 /* $Id$ */ |
1 /* $Id$ */ |
2 |
2 |
3 #ifndef COUNTEDPTR_HPP |
3 #ifndef COUNTEDPTR_HPP |
4 #define COUNTEDPTR_HPP |
4 #define COUNTEDPTR_HPP |
5 |
5 |
|
6 #if 0 // reenable when needed |
6 /** @file CCountedPtr - smart pointer implementation */ |
7 /** @file CCountedPtr - smart pointer implementation */ |
7 |
8 |
8 /** CCountedPtr - simple reference counting smart pointer. |
9 /** CCountedPtr - simple reference counting smart pointer. |
9 * |
10 * |
10 * One of the standard ways how to maintain object's lifetime. |
11 * One of the standard ways how to maintain object's lifetime. |
93 m_pT = pT; // update m_pT to new value |
94 m_pT = pT; // update m_pT to new value |
94 if (pTold) pTold->Release(); // release old ptr if any |
95 if (pTold) pTold->Release(); // release old ptr if any |
95 } |
96 } |
96 } |
97 } |
97 |
98 |
98 |
99 #endif /* 0 */ |
99 #endif /* COUNTEDPTR_HPP */ |
100 #endif /* COUNTEDPTR_HPP */ |