Commit 5c7ba8b6 authored by Felix Gruber's avatar Felix Gruber

[cleanup] use nullptr instead of 0

parent bc70fd1c
Pipeline #15633 passed with stage
in 10 minutes and 3 seconds
......@@ -29,7 +29,7 @@ namespace Dune
//! create finite element for given GeometryType
static LocalFiniteElementVirtualInterface<T>* create(const GeometryType& gt)
{
return 0;
return nullptr;
}
};
......@@ -47,7 +47,7 @@ namespace Dune
static LocalFiniteElementVirtualInterface<T>* create(const GeometryType& gt)
{
DUNE_THROW(Dune::NotImplemented, "pqkFace not implemented for 3d");
return 0;
return nullptr;
}
};
......@@ -70,7 +70,7 @@ namespace Dune
return new LocalFiniteElementVirtualImp<Pk>(Pk());
if (gt.isCube())
return new LocalFiniteElementVirtualImp<Qk>(Qk());
return 0;
return nullptr;
}
};
......@@ -142,7 +142,7 @@ namespace Dune
if (it==cache_.end())
{
FiniteElementType* fe = PQkFaceLocalFiniteElementFactory<D,R,dim,k>::create(gt);
if (fe==0)
if (fe == nullptr)
DUNE_THROW(Dune::NotImplemented,"No Pk/Qk like local finite element available for geometry type " << gt << " and order " << k);
cache_[gt] = fe;
......
......@@ -92,7 +92,7 @@ namespace Dune
{
FiniteElementType* fe =
PQkSubsampledLocalFiniteElementFactory<D,R,dim,s,k>::create(gt);
if (fe==0)
if (fe == nullptr)
DUNE_THROW(Dune::NotImplemented,"No Pk/Qk like local finite element available for geometry type " << gt << " and order " << k);
cache_[gt] = fe;
......
......@@ -29,7 +29,7 @@ namespace Dune
//! create finite element for given GeometryType
static LocalFiniteElementVirtualInterface<T>* create(const GeometryType& gt)
{
return 0;
return nullptr;
}
};
......@@ -47,7 +47,7 @@ namespace Dune
static LocalFiniteElementVirtualInterface<T>* create(const GeometryType& gt)
{
DUNE_THROW(Dune::NotImplemented, "pqktrace not implemented for 3d");
return 0;
return nullptr;
}
};
......@@ -70,7 +70,7 @@ namespace Dune
return new LocalFiniteElementVirtualImp<Pk>(Pk());
if (gt.isCube())
return new LocalFiniteElementVirtualImp<Qk>(Qk());
return 0;
return nullptr;
}
};
......@@ -146,7 +146,7 @@ namespace Dune
if (it==cache_.end())
{
FiniteElementType* fe = PQkTraceLocalFiniteElementFactory<D,R,dim,k>::create(gt);
if (fe==0)
if (fe == nullptr)
DUNE_THROW(Dune::NotImplemented,"No Pk/Qk like local finite element available for geometry type " << gt << " and order " << k);
cache_[gt] = fe;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment