From: abd Date: Wed, 16 Aug 2006 14:21:54 +0000 (+0000) Subject: Bug SWP13026 X-Git-Tag: Before_Merging_V3_2_0_maintainance_21Sep06~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f660eeb53afac1297a8ccabafb18de16de1fe62f;p=modules%2Fvisu.git Bug SWP13026 Using of QGuardedPtrs instead ordinary pointers --- diff --git a/src/VISUGUI/VisuGUI_ClippingDlg.cxx b/src/VISUGUI/VisuGUI_ClippingDlg.cxx index 30b14c72..0be9f3ef 100644 --- a/src/VISUGUI/VisuGUI_ClippingDlg.cxx +++ b/src/VISUGUI/VisuGUI_ClippingDlg.cxx @@ -210,7 +210,7 @@ void OrientedPlane::Init() OrientedPlane::~OrientedPlane() { - if (myViewWindow) + if ( !myViewWindow.isNull() ) myViewWindow->RemoveActor(myActor); myActor->Delete(); diff --git a/src/VISUGUI/VisuGUI_ClippingDlg.h b/src/VISUGUI/VisuGUI_ClippingDlg.h index c649dd93..dcc56423 100644 --- a/src/VISUGUI/VisuGUI_ClippingDlg.h +++ b/src/VISUGUI/VisuGUI_ClippingDlg.h @@ -27,6 +27,7 @@ // QT Includes #include +#include #include // VTK Includes @@ -74,7 +75,7 @@ namespace VISU { //================================================================================= class OrientedPlane: public vtkPlane { - SVTK_ViewWindow* myViewWindow; + QGuardedPtr myViewWindow; vtkDataSetMapper* myMapper; public: