From: dcq Date: Fri, 30 Jan 2004 09:45:01 +0000 (+0000) Subject: DCQ : Clean up code X-Git-Tag: V1_4_0~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=590d7d454ce8ce0d7a18ee6363773caa41822ebb;p=modules%2Fgeom.git DCQ : Clean up code --- diff --git a/src/BooleanGUI/BooleanGUI_CommonDlg.cxx b/src/BooleanGUI/BooleanGUI_CommonDlg.cxx index 7e881536f..db7b47d14 100644 --- a/src/BooleanGUI/BooleanGUI_CommonDlg.cxx +++ b/src/BooleanGUI/BooleanGUI_CommonDlg.cxx @@ -85,9 +85,6 @@ void BooleanGUI_CommonDlg::Init() { /* init variables */ myEditCurrentArgument = GroupCommon->LineEdit1; - - myShape1.Nullify(); - myShape2.Nullify(); myOkShape1 = myOkShape2 = false; /* signals and slots connections */ @@ -167,7 +164,6 @@ void BooleanGUI_CommonDlg::SelectionIntoArgument() myGeomShape1 = myGeomBase->ConvertIOinGEOMShape(IO, testResult); if(!testResult) return; - myShape1 = S; GroupCommon->LineEdit1->setText(aString); myOkShape1 = true; } @@ -175,7 +171,6 @@ void BooleanGUI_CommonDlg::SelectionIntoArgument() myGeomShape2 = myGeomBase->ConvertIOinGEOMShape(IO, testResult); if(!testResult) return; - myShape2 = S; GroupCommon->LineEdit2->setText(aString); myOkShape2 = true; } diff --git a/src/BooleanGUI/BooleanGUI_CommonDlg.h b/src/BooleanGUI/BooleanGUI_CommonDlg.h index f592e6df0..cb3b805f5 100644 --- a/src/BooleanGUI/BooleanGUI_CommonDlg.h +++ b/src/BooleanGUI/BooleanGUI_CommonDlg.h @@ -54,8 +54,6 @@ private: BooleanGUI* myBooleanGUI; - TopoDS_Shape myShape1; /* topology used */ - TopoDS_Shape myShape2; /* topology used */ GEOM::GEOM_Shape_var myGeomShape1; /* is myShape1 */ GEOM::GEOM_Shape_var myGeomShape2; /* is myShape2 */ bool myOkShape1; diff --git a/src/BooleanGUI/BooleanGUI_CutDlg.cxx b/src/BooleanGUI/BooleanGUI_CutDlg.cxx index d3aaf9785..1cc08269d 100644 --- a/src/BooleanGUI/BooleanGUI_CutDlg.cxx +++ b/src/BooleanGUI/BooleanGUI_CutDlg.cxx @@ -84,9 +84,6 @@ void BooleanGUI_CutDlg::Init() { /* init variables */ myEditCurrentArgument = GroupCut->LineEdit1; - - myShape1.Nullify(); - myShape2.Nullify(); myOkShape1 = myOkShape2 = false; /* signals and slots connections */ @@ -166,7 +163,6 @@ void BooleanGUI_CutDlg::SelectionIntoArgument() myGeomShape1 = myGeomBase->ConvertIOinGEOMShape(IO, testResult); if(!testResult) return; - myShape1 = S; GroupCut->LineEdit1->setText(aString); myOkShape1 = true; } @@ -174,7 +170,6 @@ void BooleanGUI_CutDlg::SelectionIntoArgument() myGeomShape2 = myGeomBase->ConvertIOinGEOMShape(IO, testResult); if(!testResult) return; - myShape2 = S; GroupCut->LineEdit2->setText(aString); myOkShape2 = true; } diff --git a/src/BooleanGUI/BooleanGUI_CutDlg.h b/src/BooleanGUI/BooleanGUI_CutDlg.h index 46738f7f3..212bdb176 100644 --- a/src/BooleanGUI/BooleanGUI_CutDlg.h +++ b/src/BooleanGUI/BooleanGUI_CutDlg.h @@ -54,8 +54,6 @@ private: BooleanGUI* myBooleanGUI; - TopoDS_Shape myShape1; /* topology used to fuse */ - TopoDS_Shape myShape2; /* topology used to fuse */ GEOM::GEOM_Shape_var myGeomShape1; /* is myShape1 */ GEOM::GEOM_Shape_var myGeomShape2; /* is myShape2 */ bool myOkShape1; /* to check when arguments are defined */ diff --git a/src/BooleanGUI/BooleanGUI_FuseDlg.cxx b/src/BooleanGUI/BooleanGUI_FuseDlg.cxx index 14a741cc3..ea9ae1b3a 100644 --- a/src/BooleanGUI/BooleanGUI_FuseDlg.cxx +++ b/src/BooleanGUI/BooleanGUI_FuseDlg.cxx @@ -84,9 +84,6 @@ void BooleanGUI_FuseDlg::Init() { /* init variables */ myEditCurrentArgument = GroupFuse->LineEdit1; - - myShape1.Nullify(); - myShape2.Nullify(); myOkShape1 = myOkShape2 = false; /* signals and slots connections */ @@ -166,7 +163,6 @@ void BooleanGUI_FuseDlg::SelectionIntoArgument() myGeomShape1 = myGeomBase->ConvertIOinGEOMShape(IO, testResult); if(!testResult) return; - myShape1 = S; GroupFuse->LineEdit1->setText(aString); myOkShape1 = true; } @@ -174,7 +170,6 @@ void BooleanGUI_FuseDlg::SelectionIntoArgument() myGeomShape2 = myGeomBase->ConvertIOinGEOMShape(IO, testResult); if(!testResult) return; - myShape2 = S; GroupFuse->LineEdit2->setText(aString); myOkShape2 = true; } diff --git a/src/BooleanGUI/BooleanGUI_FuseDlg.h b/src/BooleanGUI/BooleanGUI_FuseDlg.h index 799eb0b9d..6898e64aa 100644 --- a/src/BooleanGUI/BooleanGUI_FuseDlg.h +++ b/src/BooleanGUI/BooleanGUI_FuseDlg.h @@ -54,8 +54,6 @@ private: BooleanGUI* myBooleanGUI; - TopoDS_Shape myShape1; /* topology used to fuse */ - TopoDS_Shape myShape2; /* topology used to fuse */ GEOM::GEOM_Shape_var myGeomShape1; /* is myShape1 */ GEOM::GEOM_Shape_var myGeomShape2; /* is myShape2 */ bool myOkShape1; /* to check when arguments are defined */ diff --git a/src/BooleanGUI/BooleanGUI_SectionDlg.cxx b/src/BooleanGUI/BooleanGUI_SectionDlg.cxx index d2c1c6a4a..51bae1f9e 100644 --- a/src/BooleanGUI/BooleanGUI_SectionDlg.cxx +++ b/src/BooleanGUI/BooleanGUI_SectionDlg.cxx @@ -85,9 +85,6 @@ void BooleanGUI_SectionDlg::Init() { /* init variables */ myEditCurrentArgument = GroupSection->LineEdit1; - - myShape1.Nullify(); - myShape2.Nullify(); myOkShape1 = myOkShape2 = false; /* signals and slots connections */ @@ -167,7 +164,6 @@ void BooleanGUI_SectionDlg::SelectionIntoArgument() myGeomShape1 = myGeomBase->ConvertIOinGEOMShape(IO, testResult); if(!testResult) return; - myShape1 = S; GroupSection->LineEdit1->setText(aString); myOkShape1 = true; } @@ -175,7 +171,6 @@ void BooleanGUI_SectionDlg::SelectionIntoArgument() myGeomShape2 = myGeomBase->ConvertIOinGEOMShape(IO, testResult); if(!testResult) return; - myShape2 = S; GroupSection->LineEdit2->setText(aString); myOkShape2 = true; } diff --git a/src/BooleanGUI/BooleanGUI_SectionDlg.h b/src/BooleanGUI/BooleanGUI_SectionDlg.h index badf2afdf..ef1f35282 100644 --- a/src/BooleanGUI/BooleanGUI_SectionDlg.h +++ b/src/BooleanGUI/BooleanGUI_SectionDlg.h @@ -54,8 +54,6 @@ private: BooleanGUI* myBooleanGUI; - TopoDS_Shape myShape1; /* topology used to fuse */ - TopoDS_Shape myShape2; /* topology used to fuse */ GEOM::GEOM_Shape_var myGeomShape1; /* is myShape1 */ GEOM::GEOM_Shape_var myGeomShape2; /* is myShape2 */ bool myOkShape1; /* to check when arguments are defined */