.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@11088 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-05-15 14:10:28 +00:00
parent 06a3dfe7eb
commit 26394b7e5e
2 changed files with 5 additions and 3 deletions

View file

@ -40,7 +40,9 @@ inline int32 Round(double a)
#ifdef flagDEBUG
#define LG LogGui
#else
#define LG
inline void LG_Dummy_Nop__(int level, const char *fmt, ...) {} // needed to silence CLANG warnings
inline void LG_Dummy_Nop__(const char *fmt, ...) {} // about unused value
#define LG LG_Dummy_Nop__
#endif
#define LGR LogGui

View file

@ -53,9 +53,9 @@ public:
ASSERT(refcount == 0);
}
void AddRef() const { if(this) AtomicInc(refcount); }
void AddRef() const { AtomicInc(refcount); }
int GetRefCount() const { return refcount; }
void Release() const { if(this && !AtomicDec(refcount)) delete this; }
void Release() const { if(!AtomicDec(refcount)) delete this; }
#ifdef REF_DEBUG
int GetAllocIndex() const { return allocindex; }
#endif//REF_DEBUG