Skip to content
Snippets Groups Projects
Commit 8cbdf854 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

cleanup

parent 8ec98b94
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......@@ -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; }
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment