Fix various typos (#20651)

* Fix various typos
Found via `codespell -q 3 -L aci,addmin,ake,aline,alle,alledges,alocation,als,ang,anid,anormal,anull,aply,apoints,ba,beginn,behaviour,bloaded,bottome,brushin,bu,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childrens,childs,colour,colours,commen,connexion,currenty,documentin,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,findn,fle,freez,graphin,groupe,hist,iff,incrementin,indexin,indicies,initialisation,initialise,initialised,initialises,initialisiert,inout,ist,itsel,kilometre,leadin,localy,lod,mantatory,matc,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oce,oder,ontop,orgin,orginx,orginy,ot,pard,parm,parms,pres,programm,que,rady,recurrance,renderin,re-use,re-used,re-using,rin,ro,rougly,sectionin,seperator,sergent,serie,shs,sinc,siz,som,stpo,strack,substraction,te,technic,thist,thru,tread,tru,ue,uint,unter,uupper,uptodate,vas,vertexes,vew,wallthickness,whitespaces -S "./.git,*.po,*.ts,*.pdf,./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/Doc/FreeCAD.uml,./src/Base/StackWalker.cpp,./build/doc/SourceDoc,./tools/build/WindowsInstaller/lang,./src/Mod/TechDraw/Templates/locale"`

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
luzpaz
2025-04-05 23:58:20 -04:00
committed by GitHub
parent 0b3dca895d
commit 7a12d2f96f
11 changed files with 43 additions and 43 deletions

View File

@@ -875,7 +875,7 @@ static inline void getEndPoints(const TopoDS_Wire& wire, gp_Pnt& p1, gp_Pnt& p2)
}
// Toponaming integration note: there's a new class called WireJoiner in Mod/Part/App/ that has been
// imported from RT's fork. Is's an improved version of the following struct, therefor
// imported from RT's fork. It's an improved version of the following struct, therefore
// probably at some point this struct should be replaced with the new imported class.
// See https://github.com/realthunder/FreeCAD/blob/LinkStable/src/Mod/Part/App/WireJoiner.h for the
// original implementation of the class and https://github.com/FreeCAD/FreeCAD/pull/12535 for the

View File

@@ -132,7 +132,7 @@ def process(filename):
regex = re.compile(_regex)
afile = pyopen(filename, 'r')
# read the airfoil name which is always at the first line
# read the airfoil name which is always in the first line
airfoilname = afile.readline().strip()
coords = []

View File

@@ -603,7 +603,7 @@ void PropertyPartShape::RestoreDocFile(Base::Reader &reader)
// Now it's not possible anymore because both PropertyPartShape::loadFromFile() and
// PropertyPartShape::loadFromStream() calls PropertyPartShape::setValue() which clears the
// value of _Ver.
// Therefor we're storing the value of _Ver here so that we don't lose it.
// Therefore we're storing the value of _Ver here so that we don't lose it.
std::string ver = _Ver;

View File

@@ -1722,7 +1722,7 @@ public:
}
// Originally here there was the definition of the method checkStack(), which does nothing and
// therefor has been removed. See
// therefore has been removed. See
// https://github.com/realthunder/FreeCAD/blob/6f15849be2505f98927e75d0e8352185e14e7b72/src/Mod/Part/App/WireJoiner.cpp#L1366
// for reference
@@ -1768,7 +1768,7 @@ public:
++stack.back().iEnd;
// Originally here there was a call to the method checkStack(),
// which does nothing and therefor has been removed.
// which does nothing and therefore has been removed.
}
}
}
@@ -1985,7 +1985,7 @@ public:
auto stackEnd = stack.size();
// Originally here there was a call to the method checkStack(), which does nothing and
// therefor has been removed.
// therefore has been removed.
// pstart and pend is the start and end vertex of the current wire
while (true) {
@@ -2004,7 +2004,7 @@ public:
beginInfo);
// Originally here there was a call to the method checkStack(), which does nothing and
// therefor has been removed.
// therefore has been removed.
if (proceed) {
if (_findClosedWiresUpdateEdges(currentVertex,
@@ -2182,7 +2182,7 @@ public:
vertexStack.push_back(currentVertex);
// Originally here there was a call to the method checkStack(), which does
// nothing and therefor has been removed.
// nothing and therefore has been removed.
int idxEnd = (int)wireVertices.size();
int stackStart = (int)stack.size() - 1;
@@ -2381,7 +2381,7 @@ public:
edgeSet.insert(wireVertices[idxV].edgeInfo());
// Originally here there was a call to the method checkStack(), which does
// nothing and therefor has been removed.
// nothing and therefore has been removed.
}
if (!newWire) {
@@ -2425,7 +2425,7 @@ public:
vertexStack.push_back(currentVertex);
// Originally here there a call to the method checkStack(), which
// does nothing and therefor has been removed.
// does nothing and therefore has been removed.
TopoDS_Wire wire;
if (pstart.SquareDistance(currentVertex.ptOther()) > myTol2) {
@@ -2511,7 +2511,7 @@ public:
edgeSet.insert(wireVertices[idxV].edgeInfo());
// Originally here there a call to the method checkStack(), which does
// nothing and therefor has been removed.
// nothing and therefore has been removed.
}
}

View File

@@ -10708,7 +10708,7 @@ void SketchObject::updateGeometryRefs() {
FC_ERR("External geometry reference corrupted in " << getFullName()
<< " Please check.");
// This could happen if someone saved the sketch containing
// external geometries using some rouge releases during the
// external geometries using some rogue releases during the
// migration period. As a remedy, We re-initiate the
// external geometry here to trigger rebuild later, with
// call to rebuildExternalGeometry()

View File

@@ -49,7 +49,7 @@ void LineEdit::setDocumentObject(const App::DocumentObject* currentDocObj, bool
/* The code below is supposed to fix the input of an expression and to make the popup
* functional. The input seems to be broken because of installed event filters. My solution is
* to readd the widget into the scene. Only a parentless widget can be added to the scene.
* to re-add the widget into the scene. Only a parentless widget can be added to the scene.
* Making a widget parentless makes it lose its windowFlags, even if it is added to the scene.
* So, the algorithm is to obtain globalPos, then to make the widget parentless,
* to add it to the scene, setting the globalPos after. */

View File

@@ -461,7 +461,7 @@ QPainterPath QGILeaderLine::makeLeaderPath(std::vector<QPointF> qPoints)
//! returns the point (on the parent) to which the leader is attached.
//! result is relative to the center of the unscaled, unrotated parent.
//! result is is not inverted (Y grows upwards).
//! result is not inverted (Y grows upwards).
QPointF QGILeaderLine::getAttachFromFeature()
{
TechDraw::DrawLeaderLine* featLeader = getLeaderFeature();