]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bootstrapped
authorAutomatic source maintenance <squidadm@squid-cache.org>
Tue, 31 Aug 2010 00:14:13 +0000 (18:14 -0600)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Tue, 31 Aug 2010 00:14:13 +0000 (18:14 -0600)
src/base/CbcPointer.h

index 128332702251795ec833df3e7dd780e609341909..ef93009e5fc092062bff538c781109e2302fc112 100644 (file)
@@ -49,10 +49,10 @@ public:
     template <typename Other>
     CbcPointer &operator =(const CbcPointer<Other> &o) {
         if (this != &o) { // assignment to self
-        clear();
-        cbc = o.raw(); // so that set() is accurate
-        if (o.valid())
-            lock = cbdataReference(o->toCbdata());
+            clear();
+            cbc = o.raw(); // so that set() is accurate
+            if (o.valid())
+                lock = cbdataReference(o->toCbdata());
         }
         return *this;
     }
@@ -104,10 +104,10 @@ template<class Cbc>
 CbcPointer<Cbc> &CbcPointer<Cbc>::operator =(const CbcPointer &d)
 {
     if (this != &d) { // assignment to self
-    clear();
-    cbc = d.cbc;
-    if (d.lock && cbdataReferenceValid(d.lock))
-        lock = cbdataReference(d.lock);
+        clear();
+        cbc = d.cbc;
+        if (d.lock && cbdataReferenceValid(d.lock))
+            lock = cbdataReference(d.lock);
     }
     return *this;
 }