From 6188d3ed6887c924f19aef9edbb7e47ec7b84d22 Mon Sep 17 00:00:00 2001 From: Uwe Date: Sat, 8 Oct 2022 04:06:10 +0200 Subject: [PATCH] [TD] Draw*Imp: remove unused includes - also some sorting --- src/Mod/TechDraw/App/DrawRichAnnoPyImp.cpp | 9 +-------- src/Mod/TechDraw/App/DrawSVGTemplatePyImp.cpp | 2 +- src/Mod/TechDraw/App/DrawTemplatePyImp.cpp | 3 ++- src/Mod/TechDraw/App/DrawTileWeldPyImp.cpp | 9 +-------- 4 files changed, 5 insertions(+), 18 deletions(-) diff --git a/src/Mod/TechDraw/App/DrawRichAnnoPyImp.cpp b/src/Mod/TechDraw/App/DrawRichAnnoPyImp.cpp index 34920a8f64..b4736665b2 100644 --- a/src/Mod/TechDraw/App/DrawRichAnnoPyImp.cpp +++ b/src/Mod/TechDraw/App/DrawRichAnnoPyImp.cpp @@ -21,22 +21,15 @@ ***************************************************************************/ #include "PreCompiled.h" -#ifndef _PreComp_ -#endif - -#include -#include -#include #include "DrawRichAnno.h" - // inclusion of the generated files (generated out of DrawRichAnnoPy.xml) -#include #include #include using namespace TechDraw; + // returns a string which represents the object e.g. when printed in python std::string DrawRichAnnoPy::representation() const { diff --git a/src/Mod/TechDraw/App/DrawSVGTemplatePyImp.cpp b/src/Mod/TechDraw/App/DrawSVGTemplatePyImp.cpp index 589a665dcb..d0ee67d4ce 100644 --- a/src/Mod/TechDraw/App/DrawSVGTemplatePyImp.cpp +++ b/src/Mod/TechDraw/App/DrawSVGTemplatePyImp.cpp @@ -23,11 +23,11 @@ #include "PreCompiled.h" #include "DrawSVGTemplate.h" - // inclusion of the generated files (generated out of DrawSVGTemplatePy.xml) #include #include + using namespace TechDraw; // returns a string which represents the object e.g. when printed in python diff --git a/src/Mod/TechDraw/App/DrawTemplatePyImp.cpp b/src/Mod/TechDraw/App/DrawTemplatePyImp.cpp index 219eaf5010..8a1ded684d 100644 --- a/src/Mod/TechDraw/App/DrawTemplatePyImp.cpp +++ b/src/Mod/TechDraw/App/DrawTemplatePyImp.cpp @@ -21,16 +21,17 @@ ***************************************************************************/ #include "PreCompiled.h" + #ifndef _PreComp_ # include #endif #include "DrawTemplate.h" - // inclusion of the generated files (generated out of DrawTemplateSFPy.xml) #include #include + using namespace TechDraw; // returns a string which represents the object e.g. when printed in python diff --git a/src/Mod/TechDraw/App/DrawTileWeldPyImp.cpp b/src/Mod/TechDraw/App/DrawTileWeldPyImp.cpp index 7c44f814b7..8a70da4838 100644 --- a/src/Mod/TechDraw/App/DrawTileWeldPyImp.cpp +++ b/src/Mod/TechDraw/App/DrawTileWeldPyImp.cpp @@ -21,20 +21,13 @@ ***************************************************************************/ #include "PreCompiled.h" -#ifndef _PreComp_ -#endif - -#include -#include -#include #include "DrawTileWeld.h" - // inclusion of the generated files (generated out of DrawTileWeldPy.xml) -#include #include #include + using namespace TechDraw; // returns a string which represents the object e.g. when printed in python