]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix some warnings of Compaq's cxx for superfluous const specifiers.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 9 Jan 2002 07:26:51 +0000 (07:26 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 9 Jan 2002 07:26:51 +0000 (07:26 +0000)
git-svn-id: https://svn.dealii.org/trunk@5363 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/block_vector.h

index 0eade9c16b231f94de059e7f8c966b85fa5421dc..7f268eb41dd8f5da37d9ef9582d136d5c1ea661e 100644 (file)
@@ -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;
   };
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.