From a47c0f92fef080ee27514f0c0ec6f28420fe6bd6 Mon Sep 17 00:00:00 2001
From: Daniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Date: Sat, 21 Oct 2017 15:56:12 +0200
Subject: [PATCH] Use bool literals

---
 source/base/data_out_base.cc          | 2 +-
 source/base/table_handler.cc          | 4 ++--
 source/grid/tria.cc                   | 4 ++--
 source/multigrid/mg_transfer_block.cc | 2 +-
 source/opencascade/utilities.cc       | 4 ++--
 5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc
index 50ebc4c5db..46fd4e8186 100644
--- a/source/base/data_out_base.cc
+++ b/source/base/data_out_base.cc
@@ -126,7 +126,7 @@ namespace
 
       switch (state_in->step)
         {
-          while (1)
+          while (true)
             {
               DEAL_II_FALLTHROUGH;
             case step_A:
diff --git a/source/base/table_handler.cc b/source/base/table_handler.cc
index a9391015a7..50d3c13f3f 100644
--- a/source/base/table_handler.cc
+++ b/source/base/table_handler.cc
@@ -125,7 +125,7 @@ TableHandler::Column::Column(const std::string &tex_caption)
   tex_caption(tex_caption),
   tex_format("c"),
   precision(4),
-  scientific(0),
+  scientific(false),
   flag(0),
   max_length(0)
 {}
@@ -137,7 +137,7 @@ TableHandler::Column::Column()
   tex_caption(),
   tex_format("c"),
   precision(4),
-  scientific(0),
+  scientific(false),
   flag(0),
   max_length(0)
 {}
diff --git a/source/grid/tria.cc b/source/grid/tria.cc
index b55521cadb..1ea842be02 100644
--- a/source/grid/tria.cc
+++ b/source/grid/tria.cc
@@ -3091,7 +3091,7 @@ namespace internal
 
               // right child
               neighbor = neighbor->child(1);
-              while (1)
+              while (true)
                 {
                   Assert (neighbor->neighbor(1) == cell->child(0),
                           ExcInternalError());
@@ -3119,7 +3119,7 @@ namespace internal
 
               // left child
               neighbor = neighbor->child(0);
-              while (1)
+              while (true)
                 {
                   Assert (neighbor->neighbor(0) == cell->child(1),
                           ExcInternalError());
diff --git a/source/multigrid/mg_transfer_block.cc b/source/multigrid/mg_transfer_block.cc
index bde0a9cabc..67cef8b311 100644
--- a/source/multigrid/mg_transfer_block.cc
+++ b/source/multigrid/mg_transfer_block.cc
@@ -425,7 +425,7 @@ void MGTransferBlockBase::build_matrices (
             {
               const types::global_dof_index n_dofs = prolongation_matrices[level]->block(block, block).m();
               constraints_per_block[block].resize(0);
-              constraints_per_block[block].resize(n_dofs, 0);
+              constraints_per_block[block].resize(n_dofs, false);
               for (types::global_dof_index i=0; i<n_dofs; ++i, ++index)
                 constraints_per_block[block][i] = (constrain_indices[index] == 1);
 
diff --git a/source/opencascade/utilities.cc b/source/opencascade/utilities.cc
index 113ac6ee07..821a7ab564 100644
--- a/source/opencascade/utilities.cc
+++ b/source/opencascade/utilities.cc
@@ -365,12 +365,12 @@ namespace OpenCASCADE
             {
               Handle(Geom_Curve) curve = intersections[i];
               Handle(Geom_BoundedCurve) bcurve = Handle(Geom_BoundedCurve)::DownCast(curve);
-              check = convert_bspline.Add(bcurve,tolerance,0,1,0);
+              check = convert_bspline.Add(bcurve,tolerance,false,true,0);
               if (check == false)  // If we failed, try again with the reversed curve
                 {
                   curve->Reverse();
                   Handle(Geom_BoundedCurve) bcurve = Handle(Geom_BoundedCurve)::DownCast(curve);
-                  check = convert_bspline.Add(bcurve,tolerance,0,1,0);
+                  check = convert_bspline.Add(bcurve,tolerance,false,true,0);
                 }
               one_failed = one_failed || (check == false);
               one_added = one_added || (check == true);
-- 
2.39.5