Commit b22181b3 authored by Philippe Pébay's avatar Philippe Pébay
Browse files

Use smart pointers for testing

Change-Id: Icb7daf45af84dfae12f9ac51b0022dfe01badd22
parent fbbc6c97
......@@ -128,7 +128,7 @@ int TestHyperTreeGrid( int argc, char* argv[] )
int testIntValue = 0;
// Create hyper tree grid source
vtkHyperTreeGridSource* fractal = vtkHyperTreeGridSource::New();
vtkNew<vtkHyperTreeGridSource> fractal;
fractal->SetMaximumLevel( 3 );
fractal->DualOn();
if ( dim == 3 )
......@@ -213,8 +213,5 @@ int TestHyperTreeGrid( int argc, char* argv[] )
writer3->Write();
}
// Clean up
fractal->Delete();
return testIntValue;
}
Supports Markdown
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