Skip to content
Snippets Groups Projects
Commit 45f58793 authored by Andrea Dell'Acqua's avatar Andrea Dell'Acqua
Browse files

set a default value to ProcessorList in Gmx2Geo so that client code will not...

set a default value to ProcessorList in Gmx2Geo so that client code will not in the least affected. Merging this branch after this correction
parent f7029034
No related branches found
No related tags found
1 merge request!102set a default value to ProcessorList in Gmx2Geo so that client code will not...
......@@ -106,9 +106,8 @@ void GMXPlugin::create(GeoPhysVol *world, bool publish)
" does not exist. quitting and returning nicely! "<<std::endl;
return;
}
processorList proc;
GmxInterface gmxInterface;
Gmx2Geo gmx2Geo(f, world, gmxInterface,proc, 0 , matman);
Gmx2Geo gmx2Geo(f, world, gmxInterface, 0 , matman);
}
if (matman) MaterialManager::getManager()->printAll();
......
......@@ -58,7 +58,7 @@ class Evaluator;
class Gmx2Geo {
public:
Gmx2Geo(const std::string gmxFile, GeoPhysVol *addHere, GmxInterface &gmxInterface, processorList& procs ,unsigned int flags = 0, bool useMatManager = 0);
Gmx2Geo(const std::string gmxFile, GeoPhysVol *addHere, GmxInterface &gmxInterface, unsigned int flags = 0, bool useMatManager = 0,const processorList& procs=processorList());
private:
// Disallow copying
Gmx2Geo(const Gmx2Geo &right);
......
......@@ -30,7 +30,7 @@
using namespace std;
using namespace xercesc;
Gmx2Geo::Gmx2Geo(const string xmlFile, GeoPhysVol *addHere, GmxInterface &gmxInterface, processorList& procs, unsigned int flags, bool useMatManager) {
Gmx2Geo::Gmx2Geo(const string xmlFile, GeoPhysVol *addHere, GmxInterface &gmxInterface, unsigned int flags, bool useMatManager, const processorList& procs) {
//
// Create the xml tree (DOMDocument)
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment