From ff1a7fd0a8f9631131498e58be85aefce4ffcb83 Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Mon, 15 Jul 2019 20:10:52 -0400 Subject: [PATCH] Fix typos Found via `codespell -q 3 -I ../fc-word-whitelist.txt -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller` --- src/Mod/Draft/DraftGeomUtils.py | 4 ++-- src/Mod/Part/App/GeometryDefaultExtension.h | 4 ++-- src/Mod/Part/App/GeometryPyImp.cpp | 4 ++-- src/Mod/Sketcher/App/ExternalGeometryExtension.h | 2 +- src/Mod/TechDraw/Gui/TaskCenterLine.cpp | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Mod/Draft/DraftGeomUtils.py b/src/Mod/Draft/DraftGeomUtils.py index 95d36e6d5d..45dd4942bc 100644 --- a/src/Mod/Draft/DraftGeomUtils.py +++ b/src/Mod/Draft/DraftGeomUtils.py @@ -1181,7 +1181,7 @@ def offsetWire(wire,dvec,bind=False,occ=False,widthList=None): If widthList is provided (values only, not lengths - i.e. no unit), each value will be used to offset each corresponding edge in the wire - (The 1st value override 'dvec' for 1st segement of wire; + (The 1st value override 'dvec' for 1st segment of wire; if a value is zero, value of 'widthList[0]' will follow; if widthList[0]' == 0, but dvec still provided, dvec will be followed) ''' @@ -1295,7 +1295,7 @@ def connect(edges,closed=False): #print("debug: DraftGeomUtils.connect prev : ",prev.Vertexes[0].Point,prev.Vertexes[-1].Point) # If the edge pairs has intersection - # ... and if there is prev v2 (prev v2 was caculated intersection), do not calculate again, just use it as current v1 - avoid chance of slight difference in result + # ... and if there is prev v2 (prev v2 was calculated intersection), do not calculate again, just use it as current v1 - avoid chance of slight difference in result # Otherwise, if edge pairs has no intersection (parallel edges, line - arc do no intersect, etc.), so just just current edge endpoints as v1 # ... and connect these 2 non-intersecting edges diff --git a/src/Mod/Part/App/GeometryDefaultExtension.h b/src/Mod/Part/App/GeometryDefaultExtension.h index 48110fbba6..54732d3b26 100644 --- a/src/Mod/Part/App/GeometryDefaultExtension.h +++ b/src/Mod/Part/App/GeometryDefaultExtension.h @@ -63,7 +63,7 @@ namespace Part { // // Warnings: // - The default constructor relies on the default constructor of T for initialisation. Built-in types - // so constructed will be uninitialised. Use the specific constructor from a T to initiliase it. Note + // so constructed will be uninitialised. Use the specific constructor from a T to initialise it. Note // that the default constructor is required by the type system (see TYPESYSTEM_SOURCE_TEMPLATE_T). // // Default assumptions: @@ -79,7 +79,7 @@ namespace Part { // // Instructions: // - // 1. Read the assumptions above and provide template initilisation if needed. + // 1. Read the assumptions above and provide template initialisation if needed. // 2. Add an alias to your type under these comments // 3. Add a TYPESYSTEM_SOURCE_TEMPLATE_T in the cpp file to generate class type information // 4. Provide a specialisation of getPyObject to generate a py object of the corresponding type (cpp file) diff --git a/src/Mod/Part/App/GeometryPyImp.cpp b/src/Mod/Part/App/GeometryPyImp.cpp index 5fd1aa6376..b5eab112c6 100644 --- a/src/Mod/Part/App/GeometryPyImp.cpp +++ b/src/Mod/Part/App/GeometryPyImp.cpp @@ -269,7 +269,7 @@ PyObject* GeometryPy::getExtensionOfType(PyObject *args) try { std::shared_ptr ext(this->getGeometryPtr()->getExtension(type)); - // we create a copy and tranfer this copy's memory management responsibility to Python + // we create a copy and transfer this copy's memory management responsibility to Python PyObject* cpy = static_cast(ext->getPyObject())->copy(Py::new_reference_to(Py::Tuple(size_t(0)))); return cpy; @@ -303,7 +303,7 @@ PyObject* GeometryPy::getExtensionOfName(PyObject *args) try { std::shared_ptr ext(this->getGeometryPtr()->getExtension(std::string(o))); - // we create a copy and tranfer this copy's memory management responsibility to Python + // we create a copy and trasnfer this copy's memory management responsibility to Python PyObject* cpy = static_cast(ext->getPyObject())->copy(Py::new_reference_to(Py::Tuple(size_t(0)))); return cpy; diff --git a/src/Mod/Sketcher/App/ExternalGeometryExtension.h b/src/Mod/Sketcher/App/ExternalGeometryExtension.h index 6eafd0a55b..3fd595f88e 100644 --- a/src/Mod/Sketcher/App/ExternalGeometryExtension.h +++ b/src/Mod/Sketcher/App/ExternalGeometryExtension.h @@ -39,7 +39,7 @@ public: Frozen = 1, // freeze an external geometry Detached = 2, // signal the intentions of detaching the geometry from external reference Missing = 3, // geometry with missing external reference - Sync = 4, // signal the intension to synchronize a frozen geometry + Sync = 4, // signal the intention to synchronize a frozen geometry NumFlags // Must be the last type }; // END_CREDIT_BLOCK: Credit under LGPL for this block to Zheng, Lei (realthunder) diff --git a/src/Mod/TechDraw/Gui/TaskCenterLine.cpp b/src/Mod/TechDraw/Gui/TaskCenterLine.cpp index e0719b3265..833eedb5b5 100644 --- a/src/Mod/TechDraw/Gui/TaskCenterLine.cpp +++ b/src/Mod/TechDraw/Gui/TaskCenterLine.cpp @@ -134,7 +134,7 @@ TaskCenterLine::TaskCenterLine(TechDraw::DrawViewPart* partFeat, } else if (geomType == "Vertex") { m_type = 2; } else { - Base::Console().Error("TaskCenterLine - unknow geometry type: %s. Can not proceed.\n", geomType.c_str()); + Base::Console().Error("TaskCenterLine - unknown geometry type: %s. Can not proceed.\n", geomType.c_str()); return; } setUiPrimary();