version 1.17, 2005/10/24 19:35:25
|
version 1.18, 2005/11/07 23:18:15
|
|
|
{ | { |
if (x) | if (x) |
{ | { |
|
#ifdef PEGASUS_DEBUG |
// A sharable object should never be incremented from zero. | // A sharable object should never be incremented from zero. |
// If so, there is a double delete being cause by impropoer use | // If so, there is a double delete being cause by impropoer use |
// of sharable assignment or copy constructors somewhere | // of sharable assignment or copy constructors somewhere |
// << Wed Nov 6 12:46:52 2002 mdd >> | // << Wed Nov 6 12:46:52 2002 mdd >> |
assert(((Sharable*)x)->_ref.get()); | assert(((Sharable*)x)->_ref.get()); |
|
#endif |
x->_ref++; | x->_ref++; |
} | } |
|
|
} | } |
| |
| |