mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
remove O4 memusage calls
This commit is contained in:
parent
6bfc2cafc7
commit
31529c37fa
@ -38,7 +38,9 @@ TypeHandle RefCountObj<Base>::_type_handle;
|
||||
INLINE ReferenceCount::
|
||||
ReferenceCount() {
|
||||
_ref_count = 0;
|
||||
#ifndef NDEBUG
|
||||
MemoryUsage::record_pointer(this);
|
||||
#endif
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -54,7 +56,9 @@ ReferenceCount() {
|
||||
INLINE ReferenceCount::
|
||||
ReferenceCount(const ReferenceCount &) {
|
||||
_ref_count = 0;
|
||||
#ifndef NDEBUG
|
||||
MemoryUsage::record_pointer(this);
|
||||
#endif
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -91,7 +95,9 @@ operator = (const ReferenceCount &) {
|
||||
INLINE ReferenceCount::
|
||||
~ReferenceCount() {
|
||||
prepare_delete();
|
||||
#ifndef NDEBUG
|
||||
MemoryUsage::remove_pointer(this);
|
||||
#endif
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user