Changeset 9808 in orxonox.OLD for branches/new_class_id/src
- Timestamp:
- Sep 25, 2006, 12:39:24 AM (18 years ago)
- Location:
- branches/new_class_id/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/sound/sound_buffer.h
r9806 r9808 23 23 virtual ~SoundBuffer(); 24 24 25 /** @brief assignment operator */ 26 SoundBuffer& operator=(const SoundBuffer& buffer) { this->data = buffer.data; return *this; }; 25 27 bool operator==(const SoundBuffer& buffer) const {return this->data == buffer.data; }; 26 28 -
branches/new_class_id/src/lib/util/count_pointer.h
r9723 r9808 11 11 explicit CountPointer(X* p = NULL) // allocate a new counter 12 12 : itsCounter(NULL) { if (p) itsCounter = new counter(p); } 13 virtual~CountPointer() { release(); }13 ~CountPointer() { release(); } 14 14 CountPointer(const CountPointer& r) { acquire(r.itsCounter); } 15 15 CountPointer& operator=(const CountPointer& r) … … 25 25 inline X& operator*() const { return *itsCounter->ptr; } 26 26 inline X* operator->() const { return itsCounter->ptr; } 27 inline bool unique() const { return (itsCounter ? itsCounter->count == 1 : true); }27 inline bool unique() const { return (itsCounter ? itsCounter->count == 1 : true); } 28 28 inline bool isNull() const { return (!itsCounter); } 29 29 30 virtualunsigned int count() const { return (this->itsCounter ? itsCounter->count : 0); }30 unsigned int count() const { return (this->itsCounter ? itsCounter->count : 0); } 31 31 private: 32 32 -
branches/new_class_id/src/lib/util/loading/fast_factory.cc
r9715 r9808 164 164 tmpMember = tmpMember->next; 165 165 if (hardFLUSH) 166 {167 166 delete delMember->objectPointer; 168 }169 167 delete delMember; 170 168 } -
branches/new_class_id/src/world_entities/npcs/generic_npc.cc
r9806 r9808 27 27 28 28 #include "sound_buffer.h" 29 #include "resource_sound_buffer.h" 29 30 30 31 #include "loading/resource_manager.h"
Note: See TracChangeset
for help on using the changeset viewer.