From: wolf Date: Wed, 9 Jan 2002 07:26:51 +0000 (+0000) Subject: Fix some warnings of Compaq's cxx for superfluous const specifiers. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0903743176d0c4953964eb2c43b042be808c35c9;p=dealii-svn.git Fix some warnings of Compaq's cxx for superfluous const specifiers. git-svn-id: https://svn.dealii.org/trunk@5363 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/block_vector.h b/deal.II/lac/include/lac/block_vector.h index 0eade9c16b..7f268eb41d 100644 --- a/deal.II/lac/include/lac/block_vector.h +++ b/deal.II/lac/include/lac/block_vector.h @@ -1334,7 +1334,7 @@ namespace BlockVectorIterators // that we run into a gcc bug where // it complains that we return a // reference to a temporary - const reference p = parent->block(current_block)(index_within_block); + reference p = parent->block(current_block)(index_within_block); return p; }; @@ -1350,7 +1350,7 @@ namespace BlockVectorIterators // that we run into a gcc bug where // it complains that we return a // reference to a temporary - const reference p = parent->block(current_block)(index_within_block); + reference p = parent->block(current_block)(index_within_block); return &p; }; @@ -1369,7 +1369,7 @@ namespace BlockVectorIterators if ((global_index+d >= next_break_backward) && (global_index+d <= next_break_forward)) { - const reference p = parent->block(current_block)(index_within_block + d); + reference p = parent->block(current_block)(index_within_block + d); return p; }; @@ -1381,7 +1381,7 @@ namespace BlockVectorIterators // search for the block. this can // be done through the parent // class as well. - const reference p = (*parent)(global_index+d); + reference p = (*parent)(global_index+d); return p; };