Skip to content

Commit 8f263dd

Browse files
authored
fix(refcount): Fix compile warning in constructors of RefCountClass (TheSuperHackers#2521)
1 parent 3354474 commit 8f263dd

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Core/Libraries/Source/WWVegas/WWLib/LISTNODE.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ class DataNode : public GenericNode {
222222
T Value;
223223
public:
224224
DataNode() {};
225-
DataNode(T value) { Set(value); };
226225
void Set(T value) { Value = value; };
227226
T Get() const { return Value; };
228227

Core/Libraries/Source/WWVegas/WWLib/refcount.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,9 @@ class RefCountClass
9595

9696
RefCountClass()
9797
: NumRefs(1)
98-
#ifdef RTS_DEBUG
99-
, ActiveRefNode(this)
100-
#endif
10198
{
10299
#ifdef RTS_DEBUG
100+
ActiveRefNode.Set(this);
103101
Add_Active_Ref(this);
104102
Inc_Total_Refs(this);
105103
#endif
@@ -110,11 +108,9 @@ class RefCountClass
110108
*/
111109
RefCountClass(const RefCountClass & )
112110
: NumRefs(1)
113-
#ifdef RTS_DEBUG
114-
, ActiveRefNode(this)
115-
#endif
116111
{
117112
#ifdef RTS_DEBUG
113+
ActiveRefNode.Set(this);
118114
Add_Active_Ref(this);
119115
Inc_Total_Refs(this);
120116
#endif

0 commit comments

Comments
 (0)