Refactoring. Delete repetitive code.
--HG-- branch : feature
This commit is contained in:
parent
9fb5a0206a
commit
3492514b04
|
@ -142,7 +142,6 @@ CONFIG(debug, debug|release){
|
|||
-Wlong-long \
|
||||
-Wmissing-format-attribute \
|
||||
-Wswitch-default \
|
||||
-Wswitch-enum \
|
||||
-Wuninitialized \
|
||||
-Wvariadic-macros \
|
||||
-Wlogical-op \
|
||||
|
|
|
@ -511,27 +511,6 @@ void VToolDetail::AddNode(VPattern *doc, QDomElement &domElement, const VNodeDet
|
|||
case (Tool::NodeSplinePath):
|
||||
doc->SetAttribute(nod, AttrType, NodeSplinePath);
|
||||
break;
|
||||
case (Tool::ArrowTool):
|
||||
case (Tool::SinglePointTool):
|
||||
case (Tool::EndLineTool):
|
||||
case (Tool::LineTool):
|
||||
case (Tool::AlongLineTool):
|
||||
case (Tool::ShoulderPointTool):
|
||||
case (Tool::NormalTool):
|
||||
case (Tool::BisectorTool):
|
||||
case (Tool::LineIntersectTool):
|
||||
case (Tool::SplineTool):
|
||||
case (Tool::CutSplineTool):
|
||||
case (Tool::CutArcTool):
|
||||
case (Tool::ArcTool):
|
||||
case (Tool::SplinePathTool):
|
||||
case (Tool::CutSplinePathTool):
|
||||
case (Tool::PointOfContact):
|
||||
case (Tool::DetailTool):
|
||||
case (Tool::Height):
|
||||
case (Tool::Triangle):
|
||||
case (Tool::PointOfIntersection):
|
||||
case (Tool::UnionDetails):
|
||||
default:
|
||||
qDebug()<<"May be wrong tool type!!! Ignoring."<<Q_FUNC_INFO;
|
||||
break;
|
||||
|
|
|
@ -835,27 +835,6 @@ void VToolUnionDetails::AddNode(QDomElement &domElement, const VNodeDetail &node
|
|||
case (Tool::NodeSplinePath):
|
||||
doc->SetAttribute(nod, AttrType, QStringLiteral("NodeSplinePath"));
|
||||
break;
|
||||
case (Tool::ArrowTool):
|
||||
case (Tool::SinglePointTool):
|
||||
case (Tool::EndLineTool):
|
||||
case (Tool::LineTool):
|
||||
case (Tool::AlongLineTool):
|
||||
case (Tool::ShoulderPointTool):
|
||||
case (Tool::NormalTool):
|
||||
case (Tool::BisectorTool):
|
||||
case (Tool::LineIntersectTool):
|
||||
case (Tool::SplineTool):
|
||||
case (Tool::CutSplineTool):
|
||||
case (Tool::CutArcTool):
|
||||
case (Tool::ArcTool):
|
||||
case (Tool::SplinePathTool):
|
||||
case (Tool::CutSplinePathTool):
|
||||
case (Tool::PointOfContact):
|
||||
case (Tool::DetailTool):
|
||||
case (Tool::Height):
|
||||
case (Tool::Triangle):
|
||||
case (Tool::PointOfIntersection):
|
||||
case (Tool::UnionDetails):
|
||||
default:
|
||||
qDebug()<<"May be wrong tool type!!! Ignoring."<<Q_FUNC_INFO;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user