Makes one argument constructors explicit to prevent type conversion.

This commit is contained in:
Markus Blatt 2015-02-20 15:31:38 +01:00
parent 007acfe018
commit 46e0e0b0f7

View File

@ -149,7 +149,7 @@ public:
/// \brief Constructor. /// \brief Constructor.
/// \param grid The grid whose information we represent. /// \param grid The grid whose information we represent.
FaceCellsContainerProxy(const Dune::CpGrid* grid) explicit FaceCellsContainerProxy(const Dune::CpGrid* grid)
: grid_(grid) : grid_(grid)
{} {}
/// \brief Get the mapping for a cell. /// \brief Get the mapping for a cell.
@ -175,7 +175,7 @@ private:
class IndexIterator class IndexIterator
{ {
public: public:
IndexIterator(int index) explicit IndexIterator(int index)
: index_(index) : index_(index)
{} {}
@ -275,7 +275,7 @@ public:
typedef LocalIndexProxy<AccessMethod, SizeMethod> row_type; typedef LocalIndexProxy<AccessMethod, SizeMethod> row_type;
/// \brief Constructor. /// \brief Constructor.
/// \param grid The grid whose information we represent. /// \param grid The grid whose information we represent.
LocalIndexContainerProxy(const Dune::CpGrid* grid) explicit LocalIndexContainerProxy(const Dune::CpGrid* grid)
: grid_(grid) : grid_(grid)
{} {}
/// \brief Get the mapping for a cell. /// \brief Get the mapping for a cell.
@ -368,7 +368,7 @@ class Cell2FacesContainer
public: public:
typedef Cell2FacesRow row_type; typedef Cell2FacesRow row_type;
Cell2FacesContainer(const Dune::CpGrid* grid) explicit Cell2FacesContainer(const Dune::CpGrid* grid)
: grid_(grid) : grid_(grid)
{}; {};