]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid some compiler warnings regarding ignored type qualifiers in function returns.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 13 Sep 2010 14:05:20 +0000 (14:05 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 13 Sep 2010 14:05:20 +0000 (14:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@21943 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/petsc_matrix_base.h
deal.II/lac/include/lac/petsc_precondition.h
deal.II/lac/source/petsc_matrix_base.cc
deal.II/lac/source/petsc_precondition.cc

index 857398860bed10b99459e5d5fb286c6641737046..3efa4064cdb8b2c21d6a81efe075ad3cc51658da 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -1082,7 +1082,7 @@ namespace PETScWrappers
                                         * for read-only operations into the
                                         * matrix.
                                         */
-      operator const Mat () const;
+      operator Mat () const;
 
                                         /**
                                         * Make an in-place transpose of a
index f18d7c7628fff076cec01ecfa7709c7b7c8f99fc..6d23c6e5b93e13076d9323d9f79c567186d63e2f 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2004, 2005, 2006, 2007 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2006, 2007, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -80,7 +80,7 @@ namespace PETScWrappers
                                         * where we need to pass this matrix to
                                         * the PETSc solvers.
                                         */
-      operator const Mat () const;
+      operator Mat () const;
 
                                        /**
                                         * Function that takes a Krylov
index 9f1fc2fa50373dab55cb847d928a8f7eb6f784e6..a58b7a5fe9c362bef3e10c9685c5ffcc9c005ec0 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2004, 2005, 2006, 2008, 2009 by the deal.II authors
+//    Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -533,7 +533,7 @@ namespace PETScWrappers
 
 
 
-  MatrixBase::operator const Mat () const
+  MatrixBase::operator Mat () const
   {
     return matrix;
   }
index a136716f7d436629ed28b34184d2086a60a665c1..cceb49b1a69d3c140bd33c5af14f15ce81849f30 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2004, 2006, 2008, 2009 by the deal.II authors
+//    Copyright (C) 2004, 2006, 2008, 2009, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -36,7 +36,7 @@ namespace PETScWrappers
 
   
 
-  PreconditionerBase::operator const Mat () const
+  PreconditionerBase::operator Mat () const
   {
     return matrix;
   }

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.