]> Creatis software - clitk.git/commitdiff
used vtkSmartPointer
authorbharath <bharath>
Thu, 12 Aug 2010 09:00:53 +0000 (09:00 +0000)
committerbharath <bharath>
Thu, 12 Aug 2010 09:00:53 +0000 (09:00 +0000)
common/vvImage.h

index 07987c78cda75b16c5d40d3c5f3949643dc083e8..29573cd029795f3cb7a4f3ab33b33fd9bcb36086 100644 (file)
@@ -42,7 +42,7 @@ public :
   void SetImage(std::vector<vtkImageData*> images);
   void AddImage(vtkImageData* image);
   const std::vector<vtkImageData*>& GetVTKImages();
-  vtkImageData* GetFirstVTKImageData();
+  vtkSmartPointer<vtkImageData> GetFirstVTKImageData();
   int GetNumberOfDimensions() const;
   int GetNumberOfSpatialDimensions();
   void GetScalarRange(double* range);