Changeset 8144 in orxonox.OLD for branches/gui/src/lib/util
- Timestamp:
- Jun 4, 2006, 7:55:55 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/util/count_pointer.h
r6669 r8144 11 11 explicit CountPointer(X* p = 0) // allocate a new counter 12 12 : itsCounter(0) { if (p) itsCounter = new counter(p); } 13 ~CountPointer() { release(); }13 virtual ~CountPointer() { release(); } 14 14 CountPointer(const CountPointer& r) { acquire(r.itsCounter); } 15 15 CountPointer& operator=(const CountPointer& r)
Note: See TracChangeset
for help on using the changeset viewer.