From 938ab2b77373a8c35e90ded737ecbdba73660205 Mon Sep 17 00:00:00 2001 From: Owen Jones Date: Tue, 31 Oct 2017 11:13:16 +0000 Subject: [PATCH] Replace 'detatch' with 'detach' --- src/util/reference_counting.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/util/reference_counting.h b/src/util/reference_counting.h index 4d5accb5ece..66aacf734c5 100644 --- a/src/util/reference_counting.h +++ b/src/util/reference_counting.h @@ -73,7 +73,7 @@ class reference_counting T &write() { - detatch(); + detach(); return *d; } @@ -92,7 +92,7 @@ class reference_counting void remove_ref(dt *old_d); - void detatch(); + void detach(); void copy_from(const reference_counting &other) { @@ -145,10 +145,10 @@ void reference_counting::remove_ref(dt *old_d) } template -void reference_counting::detatch() +void reference_counting::detach() { #ifdef REFERENCE_COUNTING_DEBUG - std::cout << "DETATCH1: " << d << '\n'; + std::cout << "DETACH1: " << d << '\n'; #endif if(d==nullptr) @@ -175,7 +175,7 @@ void reference_counting::detatch() assert(d->ref_count==1); #ifdef REFERENCE_COUNTING_DEBUG - std::cout << "DETATCH2: " << d << '\n' + std::cout << "DETACH2: " << d << '\n' #endif }