diff --git a/dune/istl/bcrsmatrix.hh b/dune/istl/bcrsmatrix.hh index 7f45b4b268fa6c4a60aa23e3771ac5dffbf4ce72..6965fc726c352e056e4e5d00c529832b5fef8b7f 100644 --- a/dune/istl/bcrsmatrix.hh +++ b/dune/istl/bcrsmatrix.hh @@ -1031,10 +1031,7 @@ namespace Dune { //! return true if column index is in row bool contains (size_type j) { - if (pattern.find(j)!=pattern.end()) - return true; - else - return false; + return pattern.find(j) != pattern.end(); } /** * @brief Get the current row size.