File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class reference_counting
73
73
74
74
T &write ()
75
75
{
76
- detatch ();
76
+ detach ();
77
77
return *d;
78
78
}
79
79
@@ -92,7 +92,7 @@ class reference_counting
92
92
93
93
void remove_ref (dt *old_d);
94
94
95
- void detatch ();
95
+ void detach ();
96
96
97
97
void copy_from (const reference_counting &other)
98
98
{
@@ -145,10 +145,10 @@ void reference_counting<T>::remove_ref(dt *old_d)
145
145
}
146
146
147
147
template <class T >
148
- void reference_counting<T>::detatch ()
148
+ void reference_counting<T>::detach ()
149
149
{
150
150
#ifdef REFERENCE_COUNTING_DEBUG
151
- std::cout << " DETATCH1 : " << d << ' \n ' ;
151
+ std::cout << " DETACH1 : " << d << ' \n ' ;
152
152
#endif
153
153
154
154
if (d==nullptr )
@@ -175,7 +175,7 @@ void reference_counting<T>::detatch()
175
175
assert (d->ref_count ==1 );
176
176
177
177
#ifdef REFERENCE_COUNTING_DEBUG
178
- std::cout << " DETATCH2 : " << d << ' \n '
178
+ std::cout << " DETACH2 : " << d << ' \n '
179
179
#endif
180
180
}
181
181
You can’t perform that action at this time.
0 commit comments