]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
include/buffer: clear_and_dispose() formatting
authorMatan Breizman <mbreizma@redhat.com>
Thu, 18 Aug 2022 12:34:34 +0000 (12:34 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 18 Aug 2022 12:34:34 +0000 (12:34 +0000)
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/include/buffer.h

index dfb97facbc6504a7073aa5583a53f6720e61417b..fdbaae836592e2fc872b23c766157876d99af75a 100644 (file)
@@ -594,13 +594,13 @@ struct error_code;
        }
       }
       void clear_and_dispose() {
-       for (auto it = begin(); it != end(); /* nop */) {
-         auto& node = *it;
-         it = it->next;
-         ptr_node::disposer()(&node);
-       }
-       _root.next = &_root;
-       _tail = &_root;
+        for (auto it = begin(); it != end(); /* nop */) {
+          auto& node = *it;
+          it = it->next;
+          ptr_node::disposer()(&node);
+        }
+        _root.next = &_root;
+        _tail = &_root;
       }
       iterator erase_after_and_dispose(iterator it) {
        auto* to_dispose = &*std::next(it);