From: kronbichler Date: Mon, 13 Sep 2010 14:05:20 +0000 (+0000) Subject: Avoid some compiler warnings regarding ignored type qualifiers in function returns. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f570e347f6bb922d5e6c4e13bd3390189890e3a8;p=dealii-svn.git Avoid some compiler warnings regarding ignored type qualifiers in function returns. git-svn-id: https://svn.dealii.org/trunk@21943 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/petsc_matrix_base.h b/deal.II/lac/include/lac/petsc_matrix_base.h index 857398860b..3efa4064cd 100644 --- a/deal.II/lac/include/lac/petsc_matrix_base.h +++ b/deal.II/lac/include/lac/petsc_matrix_base.h @@ -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 diff --git a/deal.II/lac/include/lac/petsc_precondition.h b/deal.II/lac/include/lac/petsc_precondition.h index f18d7c7628..6d23c6e5b9 100644 --- a/deal.II/lac/include/lac/petsc_precondition.h +++ b/deal.II/lac/include/lac/petsc_precondition.h @@ -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 diff --git a/deal.II/lac/source/petsc_matrix_base.cc b/deal.II/lac/source/petsc_matrix_base.cc index 9f1fc2fa50..a58b7a5fe9 100644 --- a/deal.II/lac/source/petsc_matrix_base.cc +++ b/deal.II/lac/source/petsc_matrix_base.cc @@ -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; } diff --git a/deal.II/lac/source/petsc_precondition.cc b/deal.II/lac/source/petsc_precondition.cc index a136716f7d..cceb49b1a6 100644 --- a/deal.II/lac/source/petsc_precondition.cc +++ b/deal.II/lac/source/petsc_precondition.cc @@ -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; }