Merge pull request #522 from atgeirr/explicit-constructors

Made single-argument constructors explicit.
This commit is contained in:
Bård Skaflestad 2014-03-17 07:44:25 -05:00
commit ebe2a80439
2 changed files with 4 additions and 4 deletions

View File

@ -44,10 +44,10 @@ namespace Opm
{ {
public: public:
/// Construct a 3d corner-point grid or tensor grid from a deck. /// Construct a 3d corner-point grid or tensor grid from a deck.
GridManager(const Opm::EclipseGridParser& deck); explicit GridManager(const Opm::EclipseGridParser& deck);
/// Construct a 3d corner-point grid or tensor grid from a deck. /// Construct a 3d corner-point grid or tensor grid from a deck.
GridManager(Opm::DeckConstPtr newParserDeck); explicit GridManager(Opm::DeckConstPtr newParserDeck);
/// Construct a 2d cartesian grid with cells of unit size. /// Construct a 2d cartesian grid with cells of unit size.
GridManager(int nx, int ny); GridManager(int nx, int ny);
@ -65,7 +65,7 @@ namespace Opm
/// Construct a grid from an input file. /// Construct a grid from an input file.
/// The file format used is currently undocumented, /// The file format used is currently undocumented,
/// and is therefore only suited for internal use. /// and is therefore only suited for internal use.
GridManager(const std::string& input_filename); explicit GridManager(const std::string& input_filename);
/// Destructor. /// Destructor.
~GridManager(); ~GridManager();

View File

@ -66,7 +66,7 @@ namespace Opm
/// manage control switching does not exist. /// manage control switching does not exist.
/// ///
/// @param[in] W Existing wells object. /// @param[in] W Existing wells object.
WellsManager(struct Wells* W); explicit WellsManager(struct Wells* W);
/// Construct from input deck and grid. /// Construct from input deck and grid.
/// The permeability argument may be zero if the input contain /// The permeability argument may be zero if the input contain