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

index c3fd6a89204e8783e376ae2f7e3a88314e60727b..dc5c93d75431dfa17a74d650e1aabef2db91abd7 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;
 }