mark some constructors explicit

This commit is contained in:
Arne Morten Kvarving 2021-08-12 15:36:25 +02:00
parent a3ca314832
commit ad9de78253
6 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@ namespace Opm {
{
public:
EclipseConfig() = default;
EclipseConfig(const Deck& deck);
explicit EclipseConfig(const Deck& deck);
EclipseConfig(const InitConfig& initConfig, const IOConfig& io_conf);
static EclipseConfig serializeObject();

View File

@ -60,7 +60,7 @@ namespace Opm {
{}
};
Box(const EclipseGrid& grid);
explicit Box(const EclipseGrid& grid);
Box(const EclipseGrid& grid , int i1 , int i2 , int j1 , int j2 , int k1 , int k2);
void update(const DeckRecord& deckRecord);
void reset();

View File

@ -44,8 +44,8 @@ public:
MapAxes();
MapAxes(double X1, double Y1, double X2, double Y2, double X3, double Y3);
MapAxes(const std::string& mapunits, double X1, double Y1, double X2, double Y2, double X3, double Y3);
MapAxes(EclIO::EclFile& egridfile);
MapAxes(const Deck& deck);
explicit MapAxes(EclIO::EclFile& egridfile);
explicit MapAxes(const Deck& deck);
void transform(double& x, double& y) const;
void inv_transform(double& x, double& y) const;

View File

@ -53,7 +53,7 @@ public:
};
TranCalculator(const std::string& name_arg) :
explicit TranCalculator(const std::string& name_arg) :
m_name(name_arg)
{}

View File

@ -34,7 +34,7 @@ namespace Opm {
class UDQFunction {
public:
UDQFunction() : func_type(UDQTokenType::error) {}
UDQFunction(const std::string& name);
explicit UDQFunction(const std::string& name);
UDQFunction(const std::string& name, UDQTokenType funcType);
virtual ~UDQFunction() = default;
const std::string& name() const;

View File

@ -59,7 +59,7 @@ public:
double rate;
BCFace() = default;
BCFace(const DeckRecord& record);
explicit BCFace(const DeckRecord& record);
static BCFace serializeObject();