From: Daniel Arndt Date: Sat, 21 Oct 2017 13:56:12 +0000 (+0200) Subject: Use bool literals X-Git-Tag: v9.0.0-rc1~908^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a47c0f92fef080ee27514f0c0ec6f28420fe6bd6;p=dealii.git Use bool literals --- 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; iReverse(); 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);