Skip to content
Snippets Groups Projects
Commit 65ee9b15 authored by Oliver Sander's avatar Oliver Sander
Browse files

[cleanup] Use nullptr instead of '0', to make code more readable

parent e748bed2
No related branches found
No related tags found
No related merge requests found
......@@ -973,7 +973,7 @@ namespace Dune {
}
}else
// setup empty row
Mat.r[i].set(0,0,0);
Mat.r[i].set(0,nullptr,nullptr);
// initialize the j array for row i from pattern
size_type k=0;
......@@ -1979,7 +1979,7 @@ namespace Dune {
current_row.setindexptr(current_row.getindexptr()+s);
} else{
// empty row
r[i].set(0,0,0);
r[i].set(0,nullptr,nullptr);
}
}
}
......@@ -2002,7 +2002,7 @@ namespace Dune {
r[i].setindexptr(jptr);
} else{
// empty row
r[i].set(0,0,0);
r[i].set(0,nullptr,nullptr);
}
// advance position in global array
......@@ -2025,7 +2025,7 @@ namespace Dune {
r[i].setptr(aptr);
} else{
// empty row
r[i].set(0,0,0);
r[i].set(0,nullptr,nullptr);
}
// advance position in global array
......
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