From c14f58d6f32127a6d65abcba17d0ea7caffc0cee Mon Sep 17 00:00:00 2001 From: luzpaz Date: Sun, 19 Feb 2023 11:57:23 +0000 Subject: [PATCH] Fix various trailing whitespace issues and typos --- src/Mod/Idf/Idf.py | 2 +- src/Mod/Import/App/StepShape.h | 2 +- src/Mod/Import/App/StepShapePy.xml | 18 +++++++++--------- src/Mod/Import/App/dxf/ImpExpDxf.cpp | 2 +- src/Mod/Import/App/dxf/dxf.cpp | 6 +++--- src/Tools/embedded/Qt/cxx/plugin.cpp | 2 +- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/Mod/Idf/Idf.py b/src/Mod/Idf/Idf.py index a436c848fe..a4f02157a0 100644 --- a/src/Mod/Idf/Idf.py +++ b/src/Mod/Idf/Idf.py @@ -133,7 +133,7 @@ def process_emn(doc,filename): place_steps(doc,placement,board_thickness) def Process_board_outline(doc,board_outline,drills,board_thickness): - """Process_board_outline(doc,board_outline,drills,board_thickness)-> number proccesed loops + """Process_board_outline(doc,board_outline,drills,board_thickness)-> number processed loops adds emn geometry from emn file""" vertex_index=-1; #presume no vertex diff --git a/src/Mod/Import/App/StepShape.h b/src/Mod/Import/App/StepShape.h index 637907a834..705e3c9f70 100644 --- a/src/Mod/Import/App/StepShape.h +++ b/src/Mod/Import/App/StepShape.h @@ -34,7 +34,7 @@ namespace Import * convenient access to the Mesh data structure. This class should not be used * for programming algorithms in C++. Use Mesh Core classes instead! */ -class ImportExport StepShape +class ImportExport StepShape { public: StepShape(); diff --git a/src/Mod/Import/App/StepShapePy.xml b/src/Mod/Import/App/StepShapePy.xml index e37d435fc7..1bbb901644 100644 --- a/src/Mod/Import/App/StepShapePy.xml +++ b/src/Mod/Import/App/StepShapePy.xml @@ -1,13 +1,13 @@ - @@ -15,7 +15,7 @@ StepShape in a Import StepShape in Import -This class gives a interface to retrieve TopoShapes out of an loaded STEP file of any kind. +This class gives a interface to retrieve TopoShapes out of an loaded STEP file of any kind. diff --git a/src/Mod/Import/App/dxf/ImpExpDxf.cpp b/src/Mod/Import/App/dxf/ImpExpDxf.cpp index f3e4af4b19..6516013308 100644 --- a/src/Mod/Import/App/dxf/ImpExpDxf.cpp +++ b/src/Mod/Import/App/dxf/ImpExpDxf.cpp @@ -450,7 +450,7 @@ void gPntToTuple(double* result, gp_Pnt& p) } point3D gPntTopoint3D(gp_Pnt& p) -{ +{ point3D result; result.x = p.X(); result.y = p.Y(); diff --git a/src/Mod/Import/App/dxf/dxf.cpp b/src/Mod/Import/App/dxf/dxf.cpp index a075f266ad..bd84721cb6 100644 --- a/src/Mod/Import/App/dxf/dxf.cpp +++ b/src/Mod/Import/App/dxf/dxf.cpp @@ -1118,7 +1118,7 @@ void CDxfWrite::writeLinearDim(const double* textMidPoint, const double* lineDef // (*m_ssEntity) << " 71" << endl; // not R12 // (*m_ssEntity) << 1 << endl; // attachPoint ??1 = topleft (*m_ssEntity) << " 1" << endl; - (*m_ssEntity) << dimText << endl; + (*m_ssEntity) << dimText << endl; (*m_ssEntity) << " 3" << endl; (*m_ssEntity) << "STANDARD" << endl; //style //linear dims @@ -1704,7 +1704,7 @@ void CDxfWrite::writeBlocksSection(void) std::string fileSpec = m_dataDir + ss.str(); (*m_ofs) << getPlateFile(fileSpec); } - + //write blocks content (*m_ofs) << (*m_ssBlock).str(); @@ -1721,7 +1721,7 @@ void CDxfWrite::writeEntitiesSection(void) ss << "entities" << m_version << ".rub"; std::string fileSpec = m_dataDir + ss.str(); (*m_ofs) << getPlateFile(fileSpec); - + //write entities content (*m_ofs) << (*m_ssEntity).str(); diff --git a/src/Tools/embedded/Qt/cxx/plugin.cpp b/src/Tools/embedded/Qt/cxx/plugin.cpp index 898415804f..5b15485d75 100644 --- a/src/Tools/embedded/Qt/cxx/plugin.cpp +++ b/src/Tools/embedded/Qt/cxx/plugin.cpp @@ -32,7 +32,7 @@ PyMODINIT_FUNC FreeCAD_init() Gui::MainWindow* mw = new Gui::MainWindow(qApp->activeWindow()); mw->show(); - + app->initOpenInventor(); app->runInitGuiScript(); }