Skip to content
Snippets Groups Projects
Commit 0b26e0e6 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

Avoid "use of uninitialized member" warning

Initialize grid-impl pointer to nullptr in default
constructor to avoid compiler warning.
parent 224d8bc9
No related branches found
No related tags found
1 merge request!362Feature/uggrid avoid warnings
Pipeline #22490 passed
......@@ -68,7 +68,7 @@ namespace Dune {
/** \brief Constructor setting up an 'end' iterator
*/
UGGridLeafIterator()
UGGridLeafIterator() : grid_(nullptr)
{
entity_.impl().setToTarget(nullptr,nullptr);
}
......
......@@ -35,7 +35,7 @@ namespace Dune {
enum {codimension = codim};
//! Constructor
explicit UGGridLevelIterator()
explicit UGGridLevelIterator() : gridImp_(nullptr)
{
entity_.impl().setToTarget(nullptr,nullptr);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment