From 8f71ff5db294fbf55b8536f6f9eb4c7006f20fd8 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Fri, 19 Apr 2013 13:58:08 +0200 Subject: [PATCH] Fixed warning for not initialized variable. --- MeshLib/Elements/Cell.cpp | 2 +- MeshLib/Elements/Face.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MeshLib/Elements/Cell.cpp b/MeshLib/Elements/Cell.cpp index f2962079dd5..fb0caee8d94 100644 --- a/MeshLib/Elements/Cell.cpp +++ b/MeshLib/Elements/Cell.cpp @@ -22,7 +22,7 @@ Cell::Cell(Node** nodes, MshElemType::type type, unsigned value) } */ Cell::Cell(unsigned value) - : Element(value) + : Element(value), _volume(-1.0) // init with invalid value to detect errors { } diff --git a/MeshLib/Elements/Face.cpp b/MeshLib/Elements/Face.cpp index b059500f486..478c97959df 100644 --- a/MeshLib/Elements/Face.cpp +++ b/MeshLib/Elements/Face.cpp @@ -27,7 +27,7 @@ Face::Face(Node** nodes, MshElemType::type type, unsigned value) } */ Face::Face(unsigned value) - : Element(value) + : Element(value), _area(-1.0) // init with invalid value to detect errors { } -- GitLab