File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Core/Libraries/Source/WWVegas/WWLib Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,9 @@ class RefCountClass
123
123
#endif
124
124
}
125
125
126
+ /*
127
+ ** The reference counter value cannot be copied.
128
+ */
126
129
RefCountClass (const RefCountClass & ) :
127
130
NumRefs (1 )
128
131
#ifndef NDEBUG
@@ -135,6 +138,8 @@ class RefCountClass
135
138
#endif
136
139
}
137
140
141
+ RefCountClass& operator =(const RefCountClass&) { return *this ; }
142
+
138
143
/*
139
144
** Add_Ref, call this function if you are going to keep a pointer
140
145
** to this object.
@@ -280,6 +285,12 @@ class RefCountValue
280
285
WWASSERT (NumRefs == IntegerType (0 ));
281
286
}
282
287
288
+ /*
289
+ ** The reference counter value cannot be copied.
290
+ */
291
+ RefCountValue (const RefCountValue&) : NumRefs(1 ) {}
292
+ RefCountValue& operator =(const RefCountValue&) { return *this ; }
293
+
283
294
/*
284
295
** Add_Ref, call this function if you are going to keep a pointer to this object.
285
296
*/
You can’t perform that action at this time.
0 commit comments