From 43c7b6f8168654fa55bed2c82a8f6fc00ccd3601 Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 10 Mar 2010 00:39:21 +0000 Subject: [PATCH] Use .empty() instead of .size()==0. git-svn-id: https://svn.dealii.org/trunk@20776 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/sparsity_tools.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deal.II/lac/source/sparsity_tools.cc b/deal.II/lac/source/sparsity_tools.cc index d402d872f2..d4e0e1aca2 100644 --- a/deal.II/lac/source/sparsity_tools.cc +++ b/deal.II/lac/source/sparsity_tools.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2008, 2009 by the deal.II authors +// Copyright (C) 2008, 2009, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -262,7 +262,7 @@ namespace SparsityTools // now if no valid points remain: // find dof with lowest coordination // number - if (last_round_dofs.size() == 0) + if (last_round_dofs.empty()) last_round_dofs .push_back (internal::find_unnumbered_starting_index (sparsity, new_indices)); @@ -318,7 +318,7 @@ namespace SparsityTools // components of the graph // that we would then have to // do next - if (next_round_dofs.size() == 0) + if (next_round_dofs.empty()) { if (std::find (new_indices.begin(), new_indices.end(), numbers::invalid_unsigned_int) @@ -343,7 +343,7 @@ namespace SparsityTools // an error if we got // here and starting // indices were given - Assert (starting_indices.size() == 0, + Assert (starting_indices.empty(), ExcMessage ("The input graph appears to have more than one " "component, but as stated in the documentation " "we only want to reorder such graphs if no " -- 2.39.5