From 3492514b043c2da6b7b874616df49f3b76cc64b0 Mon Sep 17 00:00:00 2001 From: dismine Date: Wed, 18 Jun 2014 14:45:11 +0300 Subject: [PATCH] Refactoring. Delete repetitive code. --HG-- branch : feature --- src/app/app.pro | 1 - src/app/tools/vtooldetail.cpp | 21 --------------------- src/app/tools/vtooluniondetails.cpp | 21 --------------------- 3 files changed, 43 deletions(-) diff --git a/src/app/app.pro b/src/app/app.pro index 40ba0d1a0..02d64b309 100644 --- a/src/app/app.pro +++ b/src/app/app.pro @@ -142,7 +142,6 @@ CONFIG(debug, debug|release){ -Wlong-long \ -Wmissing-format-attribute \ -Wswitch-default \ - -Wswitch-enum \ -Wuninitialized \ -Wvariadic-macros \ -Wlogical-op \ diff --git a/src/app/tools/vtooldetail.cpp b/src/app/tools/vtooldetail.cpp index 733db56e3..2f6efad77 100644 --- a/src/app/tools/vtooldetail.cpp +++ b/src/app/tools/vtooldetail.cpp @@ -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."<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."<