[Dune] [Dune-Commit] dune-grid r5414 - trunk/grid/uggrid

Oliver Sander sander at mi.fu-berlin.de
Thu Sep 17 12:15:50 CEST 2009


Thanks Martin!
This never segfaulted because the method is new and not actually used
yet.  But the code that uses it and which I haven't committed yet does
segfault, and now I now why!

:-)
Oliver

mnolte at dune-project.org schrieb:
> Author: mnolte
> Date: 2009-09-17 12:13:32 +0200 (Thu, 17 Sep 2009)
> New Revision: 5414
>
> Modified:
>    trunk/grid/uggrid/uggridentitypointer.hh
> Log:
> add missing returns (I wonder why this never caused a segfault?)
>
>
> Modified: trunk/grid/uggrid/uggridentitypointer.hh
> ===================================================================
> --- trunk/grid/uggrid/uggridentitypointer.hh	2009-09-17 08:57:03 UTC (rev 5413)
> +++ trunk/grid/uggrid/uggridentitypointer.hh	2009-09-17 10:13:32 UTC (rev 5414)
> @@ -39,12 +39,14 @@
>          virtualEntity_.setToTarget(target);
>      }
>  
> -    typename UG_NS<dim>::template Entity<codim>::T* getTarget() {
> -        virtualEntity_.getTarget();
> +    typename UG_NS<dim>::template Entity<codim>::T* getTarget()
> +    {
> +      return virtualEntity_.getTarget();
>      }
>  
> -    const typename UG_NS<dim>::template Entity<codim>::T* getTarget() const {
> -        virtualEntity_.getTarget();
> +    const typename UG_NS<dim>::template Entity<codim>::T* getTarget() const
> +    {
> +      return virtualEntity_.getTarget();
>      }
>  
>      //! equality
>
>
> _______________________________________________
> Dune-Commit mailing list
> Dune-Commit at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-commit
>   


-- 
************************************************************************
* Oliver Sander                ** email: sander at mi.fu-berlin.de        *
* Freie Universität Berlin     ** phone: + 49 (30) 838 75348           *
* Institut für Mathematik      ** URL  : page.mi.fu-berlin.de/~sander  *
* Arnimallee 6                 ** -------------------------------------*
* 14195 Berlin, Germany        ** Member of MATHEON (www.matheon.de)   *
************************************************************************





More information about the Dune mailing list