Skip to content
Snippets Groups Projects
Commit cc1a558d authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

minor faceliftings.

[[Imported from SVN: r2136]]
parent 7c395a0e
Branches
Tags
No related merge requests found
......@@ -207,18 +207,14 @@ namespace Dune
Creates an array of size 0.
*/
template <class T>
inline Array<T>::Array ()
{
n = 0;
}
inline Array<T>::Array () : n(0), p(0) {}
/*! \brief Constructor with size indicator
Creates an empty array of size m.
*/
template <class T>
inline Array<T>::Array (int m)
inline Array<T>::Array (int m) : n(m) ,p(0)
{
n = m;
if (n<=0)
{
n = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment