diff --git a/Testing/Code/BasicFilters/otbPointSetDensityFunctionNew.cxx b/Testing/Code/BasicFilters/otbPointSetDensityFunctionNew.cxx index 80c7e5623ce51c0f2cdb032a826589ccf779c3d4..294b7a49f6b28cda8390d16c19dc0238757372bd 100644 --- a/Testing/Code/BasicFilters/otbPointSetDensityFunctionNew.cxx +++ b/Testing/Code/BasicFilters/otbPointSetDensityFunctionNew.cxx @@ -33,9 +33,8 @@ int otbPointSetDensityFunctionNew(int, char* [] ) typedef itk::PointSet<RealVectorType,Dimension> PointSetType; typedef otb::PointSetDensityFunction <PointSetType,PixelType> FunctionType; - /**Instancitation of an object*/ - FunctionType filter(); - //FunctionType::Pointer filter = FunctionType::New(); + /**Instancitation of a Smart Pointer*/ + FunctionType::Pointer filter = FunctionType::New(); return EXIT_SUCCESS; }