From a1c19dfe94233b4ceec16fc833ff232e8e4e17bd Mon Sep 17 00:00:00 2001
From: Ben Boeckel <ben.boeckel@kitware.com>
Date: Sun, 17 Oct 2021 20:21:14 -0400
Subject: [PATCH] clang-tidy: fix `modernize-use-bool-literals` lints

---
 Utilities/octree/octree/octree_cursor.txx   | 2 +-
 Utilities/octree/octree/octree_iterator.txx | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Utilities/octree/octree/octree_cursor.txx b/Utilities/octree/octree/octree_cursor.txx
index 7d6c266fc2b..35bb41f1948 100644
--- a/Utilities/octree/octree/octree_cursor.txx
+++ b/Utilities/octree/octree/octree_cursor.txx
@@ -228,7 +228,7 @@ bool octree_cursor<T_, R_, P_, O_, OP_, d_>::axis_bit(int axis) const
     throw std::logic_error("The root node has no axis partner.");
   }
 
-  return (bitcode & (1 << axis)) ? 1 : 0;
+  return (bitcode & (1 << axis)) ? true : false;
 }
 
 /**\brief Visit a specified octree node if it exists.
diff --git a/Utilities/octree/octree/octree_iterator.txx b/Utilities/octree/octree/octree_iterator.txx
index aac6adc4892..b485cda5ea8 100644
--- a/Utilities/octree/octree/octree_iterator.txx
+++ b/Utilities/octree/octree/octree_iterator.txx
@@ -138,7 +138,7 @@ octree_iterator<T_, R_, P_, O_, OP_, d_>::check_incr()
   }
   else if (this->m_current_node->is_leaf_node())
   {
-    while (1)
+    while (true)
     {
       if (this->m_indices.empty())
       {
@@ -201,7 +201,7 @@ octree_iterator<T_, R_, P_, O_, OP_, d_>::check_decr()
   }
   int child = (1 << d_) - 1;
   // Uptown. (Climb upwards to the first non-traversed node)
-  while (1)
+  while (true)
   {
     if (this->m_indices.empty())
     { // Last node is root node. Report it if we should.
-- 
GitLab