From 45fb0c09377be9df82afb61dcdfc7a6619d16b7d Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sun, 5 Apr 2015 07:19:38 +0000 Subject: [PATCH] pp --- Common/Context.cpp | 8 +++----- Common/Gmsh.cpp | 3 --- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Common/Context.cpp b/Common/Context.cpp index df05afef40..67f4277662 100644 --- a/Common/Context.cpp +++ b/Common/Context.cpp @@ -60,7 +60,7 @@ CTX::CTX() : gamepad(0) post.draw = 1; post.combineTime = 0; // try to combineTime views at startup lock = 0; // very primitive locking - fileread=false; + fileread = false; #if defined(HAVE_FLTK) glFontEnum = FL_HELVETICA; @@ -74,6 +74,8 @@ CTX::CTX() : gamepad(0) recentFiles.resize(10); mesh.optimizeLloyd = 0; gamepad = 0; + mesh.switchElementTags = 0; + terminal = 0; // need to initialize these too, since the corresponding opt_XXX // routine uses the current value to set "mesh.changed" @@ -95,10 +97,6 @@ CTX::CTX() : gamepad(0) color.mesh.tangents = color.mesh.line = color.mesh.quadrangle = 0; for (int i = 0; i < 20; i++) color.mesh.carousel[i] = 0; - // added by Gauthier Becker (these are not initialized by default - // leading to valgrind error) Feel free to change the default values) - mesh.switchElementTags=0; - terminal=0; } CTX::~CTX() diff --git a/Common/Gmsh.cpp b/Common/Gmsh.cpp index 5f83728a91..926ead8bb1 100644 --- a/Common/Gmsh.cpp +++ b/Common/Gmsh.cpp @@ -25,9 +25,6 @@ #include "PView.h" #endif -//test new algo generation points -#include "BasisFactory.h" - #if defined(HAVE_ONELAB) && !defined(HAVE_ONELAB2) #include "gmshLocalNetworkClient.h" #endif -- GitLab