From 9f60256925045981d385804481bf11eb4f73ac45 Mon Sep 17 00:00:00 2001 From: Nicolas Marsic <nicolas.marsic@gmail.com> Date: Mon, 17 Jun 2013 08:34:11 +0000 Subject: [PATCH] Context.h : Remove double semicolmn -- BasisFactory.cpp : ClearAll : incrementing interators --- Common/Context.h | 2 +- Numeric/BasisFactory.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Common/Context.h b/Common/Context.h index e7fe25411c..b90539d770 100644 --- a/Common/Context.h +++ b/Common/Context.h @@ -154,7 +154,7 @@ class CTX { double lc; // double buffer/antialias/stereo graphics? int db, antialiasing, stereo, camera ; - bool fileread; ; + bool fileread; double eye_sep_ratio,focallength_ratio,camera_aperture; // orthogonal projection? int ortho; diff --git a/Numeric/BasisFactory.cpp b/Numeric/BasisFactory.cpp index bb02b93b86..b276baaa4e 100644 --- a/Numeric/BasisFactory.cpp +++ b/Numeric/BasisFactory.cpp @@ -77,18 +77,21 @@ void BasisFactory::clearAll() std::map<int, nodalBasis*>::iterator itF = fs.begin(); while (itF != fs.end()) { delete itF->second; + itF++; } fs.clear(); std::map<int, JacobianBasis*>::iterator itJ = js.begin(); while (itJ != js.end()) { delete itJ->second; + itJ++; } js.clear(); std::map<int, bezierBasis*>::iterator itB = bs.begin(); while (itB != bs.end()) { delete itB->second; + itB++; } bs.clear(); } -- GitLab