mark some constructors explicit
This commit is contained in:
parent
a3ca314832
commit
ad9de78253
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
@ -53,7 +53,7 @@ public:
|
||||
};
|
||||
|
||||
|
||||
TranCalculator(const std::string& name_arg) :
|
||||
explicit TranCalculator(const std::string& name_arg) :
|
||||
m_name(name_arg)
|
||||
{}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -59,7 +59,7 @@ public:
|
||||
double rate;
|
||||
|
||||
BCFace() = default;
|
||||
BCFace(const DeckRecord& record);
|
||||
explicit BCFace(const DeckRecord& record);
|
||||
|
||||
static BCFace serializeObject();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user