From 8cbdf854aca4ecd5516b46e69f62ce14a9cfa0cc Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 6 Jul 2009 06:53:18 +0000 Subject: [PATCH] cleanup --- Plugin/Plugin.cpp | 4 ++-- Plugin/Plugin.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugin/Plugin.cpp b/Plugin/Plugin.cpp index df65a331ea..ca4725e1b3 100644 --- a/Plugin/Plugin.cpp +++ b/Plugin/Plugin.cpp @@ -19,14 +19,14 @@ PView *GMSH_PostPlugin::getView(int index, PView *view) } } -PViewDataList *GMSH_PostPlugin::getDataList(PView *view, bool error) +PViewDataList *GMSH_PostPlugin::getDataList(PView *view, bool showError) { if(!view) return 0; PViewDataList *data = dynamic_cast<PViewDataList*>(view->getData()); if(data) return data; - else if(error) + else if(showError) Msg::Error("This plugin can only be run on list-based views (`.pos' files)"); return 0; } diff --git a/Plugin/Plugin.h b/Plugin/Plugin.h index 3d2874e589..63dcadcb33 100644 --- a/Plugin/Plugin.h +++ b/Plugin/Plugin.h @@ -81,7 +81,7 @@ class GMSH_PostPlugin : public GMSH_Plugin // get the view given an index and a default value virtual PView *getView(int index, PView *view); // get the data in list format - virtual PViewDataList *getDataList(PView *view, bool error=1); + virtual PViewDataList *getDataList(PView *view, bool showError=true); virtual void assignSpecificVisibility() const {} virtual bool geometricalFilter(gmshMatrix<double> *) const { return true; } }; -- GitLab