From: Wolfgang Bangerth Date: Tue, 30 Mar 2004 15:09:06 +0000 (+0000) Subject: Simplify logic. X-Git-Tag: v8.0.0~15424 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf3c7b5a10ce31cda4ba194010e4c58676475723;p=dealii.git Simplify logic. git-svn-id: https://svn.dealii.org/trunk@8924 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/sparse_matrix.h b/deal.II/lac/include/lac/sparse_matrix.h index 2b1930bc25..fb7acc9d22 100644 --- a/deal.II/lac/include/lac/sparse_matrix.h +++ b/deal.II/lac/include/lac/sparse_matrix.h @@ -1971,7 +1971,7 @@ namespace internals // if we happened to find the end // of the matrix, then stop here if (accessor.a_row == accessor.matrix->m()) - return *this; + break; } return *this; @@ -2001,7 +2001,7 @@ namespace internals // if we happened to find the end // of the matrix, then stop here if (accessor.a_row == accessor.matrix->m()) - return iter; + break; } return iter;