Skip to content
Snippets Groups Projects
Commit c53c330e authored by Lars Bilke's avatar Lars Bilke
Browse files

Verifying that a pointer value is not NULL is not required.

parent 79feafbc
No related branches found
No related tags found
No related merge requests found
......@@ -50,8 +50,7 @@ void Raster::refineRaster(std::size_t scaling)
Raster::~Raster()
{
if (_raster_data != NULL)
delete [] _raster_data;
delete [] _raster_data;
}
void Raster::setCellSize(double cell_size)
......
......@@ -51,8 +51,7 @@ public:
void calcPrecond()
{
if (_inv_diag != NULL)
delete [] _inv_diag;
delete [] _inv_diag;
_inv_diag = new double[_n_rows];
if (!generateDiagPrecond(_n_rows, _row_ptr, _col_idx, _data, _inv_diag)) {
......
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