From: Wolfgang Bangerth Date: Wed, 9 Jan 2002 07:26:51 +0000 (+0000) Subject: Fix some warnings of Compaq's cxx for superfluous const specifiers. X-Git-Tag: v8.0.0~18472 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d6d32c5bc11d1e82504203aea8e6423eaa7f8ee;p=dealii.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; };