]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use bool literals 5295/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 21 Oct 2017 13:56:12 +0000 (15:56 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 21 Oct 2017 13:58:17 +0000 (15:58 +0200)
source/base/data_out_base.cc
source/base/table_handler.cc
source/grid/tria.cc
source/multigrid/mg_transfer_block.cc
source/opencascade/utilities.cc

index 50ebc4c5dbcc4515d85b375aeef03173c02a923f..46fd4e81864f47f924443480373b0fab1c904968 100644 (file)
@@ -126,7 +126,7 @@ namespace
 
       switch (state_in->step)
         {
-          while (1)
+          while (true)
             {
               DEAL_II_FALLTHROUGH;
             case step_A:
index a9391015a7c3b1af77913dc004cb765aca65c4a4..50d3c13f3f0bd90c0ba917e2f23c3f970b6245ef 100644 (file)
@@ -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)
 {}
index b55521cadb536cff10225f8ecd05643252e40cfd..1ea842be02324b6221d5bddf779ff7a171890b96 100644 (file)
@@ -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());
index bde0a9cabc7c2c63e8acc21825f7bf56a667a6cf..67cef8b311810afef4de6ee2ba937075610bf2b5 100644 (file)
@@ -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);
 
index 113ac6ee07f1448a86c3885ed31694316c2f2cf8..821a7ab564be10d4b3fa56a7aaff72006b9263f9 100644 (file)
@@ -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);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.