Skip to content
Snippets Groups Projects

FieldMapBrBz.cpp: clang is picky about default arguments on default constructor

Merged Wouter Deconinck requested to merge fieldmap-default-argument into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -19,7 +19,7 @@ using namespace dd4hep;
@@ -19,7 +19,7 @@ using namespace dd4hep;
class FieldMapBrBz : public dd4hep::CartesianField::Object
class FieldMapBrBz : public dd4hep::CartesianField::Object
{
{
public:
public:
FieldMapBrBz(const std::string &field_type);
FieldMapBrBz(const std::string &field_type = "magnetic");
void Configure(double rmin, double rmax, double rstep, double zmin, double zmax, double zstep);
void Configure(double rmin, double rmax, double rstep, double zmin, double zmax, double zstep);
void LoadMap(const std::string &map_file, double scale);
void LoadMap(const std::string &map_file, double scale);
void GetIndices(double r, double z, int &ir, int &iz, double &dr, double &dz);
void GetIndices(double r, double z, int &ir, int &iz, double &dr, double &dz);
@@ -35,7 +35,7 @@ private:
@@ -35,7 +35,7 @@ private:
};
};
// constructor
// constructor
FieldMapBrBz::FieldMapBrBz(const std::string &field_type = "magnetic")
FieldMapBrBz::FieldMapBrBz(const std::string &field_type)
{
{
std::string ftype = field_type;
std::string ftype = field_type;
for (auto &c : ftype) { c = tolower(c); }
for (auto &c : ftype) { c = tolower(c); }
Loading