Fix various typos throughout the codebase (#13029)

* Fix various typos throughout the codebase

* [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
2024-03-18 17:54:30 -04:00
committed by GitHub
parent f94c2051c0
commit 5839134e95
17 changed files with 24 additions and 22 deletions

View File

@@ -593,7 +593,7 @@ REFERENCES_RELATION = YES
# If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
# link to the source code. Otherwise they will link to the documentstion.
# link to the source code. Otherwise they will link to the documentation.
REFERENCES_LINK_SOURCE = YES

View File

@@ -325,7 +325,7 @@ QString Action::createToolTip(QString helpText,
//
// The long winding code is to deal with the fact that Qt will auto wrap
// a rich text tooltip but the width is too short. We can escape the auto
// wrappin using <p style='white-space:pre'>.
// wrapping using <p style='white-space:pre'>.
QString shortcut = shortCut;
if (!shortcut.isEmpty() && helpText.endsWith(shortcut)) {

View File

@@ -147,7 +147,7 @@ StdCmdToggleFreeze::StdCmdToggleFreeze()
sGroup = "File";
sMenuText = QT_TR_NOOP("Toggle freeze");
static std::string toolTip = std::string("<p>")
+ QT_TR_NOOP("Toggles freeze sate of the selected objects. A freezed object is not recomputed when its parents change.")
+ QT_TR_NOOP("Toggles freeze state of the selected objects. A freezed object is not recomputed when its parents change.")
+ "</p>";
sToolTipText = toolTip.c_str();
sStatusTip = sToolTipText;

View File

@@ -927,7 +927,7 @@ void DlgPreferencesImp::restorePageDefaults(PreferencesPageItem* item)
page->resetSettingsToDefaults();
/**
* Let's save the restart request before the page object is deleted and replaced with
* the newPage object (wich has restartRequired initialized to false)
* the newPage object (which has restartRequired initialized to false)
*/
restartRequired = restartRequired || page->isRestartRequired();

View File

@@ -1712,7 +1712,7 @@ void SoFCPathAnnotation::GLRenderBelowPath(SoGLRenderAction * action)
if(path->getLength() != tmpPath->getLength()) {
// The auditing SoPath may be truncated due to harmless things such as
// fliping a SoSwitch sibling node. So we keep an unauditing SoTempPath
// flipping a SoSwitch sibling node. So we keep an unauditing SoTempPath
// around to try to restore the path.
for(int i=path->getLength()-1;i<tmpPath->getLength()-1;++i) {
auto children = path->getNode(i)->getChildren();

View File

@@ -1564,7 +1564,7 @@ void TreeWidget::mousePressEvent(QMouseEvent* event)
{
QTreeWidget::mousePressEvent(event);
// Handle the visibility icon after the normal event processing to not interfer with
// Handle the visibility icon after the normal event processing to not interfere with
// the selection logic.
if (isVisibilityIconEnabled()) {
QTreeWidgetItem* item = itemAt(event->pos());

View File

@@ -883,7 +883,7 @@ class ViewProviderBuildingPart:
return True
def setEdit(self, vobj, mode):
# mode == 1 if Transform is selected in the Tree view contex menu.
# mode == 1 if Transform is selected in the Tree view context menu.
# mode == 2 has been added for consistency.
if mode == 1 or mode == 2:
return None

View File

@@ -1270,7 +1270,8 @@ class _Wall(ArchComponent.Component):
# If the object is a single edge, use that as the
# basewires.
# TODO 2023.11.26: Need to check if it is not Sketch afterall first or use algoritm for Sketch altogher?
# TODO 2023.11.26: Need to check if it isn't Sketch after all first
# or use algorithm for Sketch altogether?
elif len(obj.Base.Shape.Edges) == 1:
self.basewires = [Part.Wire(obj.Base.Shape.Edges)]

View File

@@ -1190,7 +1190,7 @@ std::vector<App::DocumentObject*> AssemblyObject::getDownstreamParts(App::Docume
}
AssemblyObject::setJointActivated(joint, state);
/*if (limit > 1000) { // Inifinite loop protection
/*if (limit > 1000) { // Infinite loop protection
return {};
}
limit++;
@@ -1243,7 +1243,7 @@ std::vector<App::DocumentObject*> AssemblyObject::getDownstreamParts(App::Docume
std::vector<App::DocumentObject*> AssemblyObject::getUpstreamParts(App::DocumentObject* part,
int limit)
{
if (limit > 1000) { // Inifinite loop protection
if (limit > 1000) { // Infinite loop protection
return {};
}
limit++;

View File

@@ -68,7 +68,7 @@
"behave like wire cutting. Without exploding, 'Difference' in ClipperLib\n"\
"behave like face cutting."))\
((enum,open_mode,OpenMode,0,\
"Specify how to handle open wires. 'None' means combin without openeration.\n"\
"Specify how to handle open wires. 'None' means combine without openeration.\n"\
"'Edges' means separate to edges before Union. ClipperLib seems to have an.\n"\
"urge to close open wires.",(None)(Union)(Edges)))\
AREA_PARAMS_DEFLECTION \

View File

@@ -105,7 +105,7 @@ class ConstraintTie(base_fempythonobject.BaseFemPythonObject):
def onDocumentRestored(self, obj):
# update old proyect with new properties
# update old project with new properties
for prop in self._get_properties():
try:
obj.getPropertyByName(prop.name)

View File

@@ -565,7 +565,7 @@ QVector<Data::MappedElement> Feature::getRelatedElements(App::DocumentObject* ob
for (auto rit = src.rbegin(); idx >= 0 && rit != src.rend(); ++rit, --idx) {
// TODO: shall we ignore source tag when comparing? It could cause
// matching unrelated element, but it does help dealing with feature
// reording in PartDesign::Body.
// recording in PartDesign::Body.
if (rit->second != source[idx].second) {
++idx;
break;

View File

@@ -4185,7 +4185,7 @@ TopoShape& TopoShape::makeElementPrism(const TopoShape& base, const gp_Vec& vec,
// // DO NOT include uptoface for element mapping. Because OCCT
// // BRepFeat_MakePrism will report all top extruded face being
// // modified by the uptoface. If there are more than one face in
// // the profile, this will cause uncessary duplicated element
// // the profile, this will cause unnecessary duplicated element
// // mapped name. And will also disrupte element history tracing
// // back to the profile sketch.
// //

View File

@@ -433,7 +433,7 @@ public:
DeriVector2 CalculateNormal(const double* param,
const double* derivparam = nullptr) const override;
DeriVector2 Value(double u, double du, const double* derivparam = nullptr) const override;
// Returns value in homogenous coordinates (x*w, y*w, w) at given parameter u
// Returns value in homogeneous coordinates (x*w, y*w, w) at given parameter u
void valueHomogenous(const double u,
double* xw,
double* yw,

View File

@@ -1961,7 +1961,7 @@ void ViewProviderSketch::moveAngleConstraint(Sketcher::Constraint* constr, int c
if (reverse) {
obj->reverseAngleConstraintToSupplementary(constr, constNum);
ap3 = intersection + dir1 - dir2; //- dir2 instead fo std::swap(dir1, dir2) and dir1 = -dir1
ap3 = intersection + dir1 - dir2; //- dir2 instead of std::swap(dir1, dir2) and dir1 = -dir1
sign1 = isLeftOfLine(p11, p12, ap3);
sign2 = isLeftOfLine(p21, p22, ap3);
}

View File

@@ -110,7 +110,7 @@ TEST_F(FeaturePartTest, create)
// the same document, the other feature will get an unique name that will still contain "Shape"
EXPECT_STREQ(_doc->getObjectName(featureNoName), "Shape001");
// There aren't other features with name "Vertex" in _doc, therefor that name will be assigned
// There aren't other features with name "Vertex" in _doc, therefore that name will be assigned
// without modifications
EXPECT_STREQ(_doc->getObjectName(featureNoDoc), "Vertex");
@@ -120,12 +120,12 @@ TEST_F(FeaturePartTest, create)
// Check that the features have been created in the correct document
// The first 3 calls to Feature::create acts on _doc, which is empty, and therefor the number of
// features in that document is the same of the features created with Feature::create
// The first 3 calls to Feature::create acts on _doc, which is empty, and therefore the number
// of features in that document is the same of the features created with Feature::create
EXPECT_EQ(_doc->getObjects().size(), 3);
// The last call to Feature::create acts on otherDoc, which is empty, and therefor that document
// will have only 1 feature
// The last call to Feature::create acts on otherDoc, which is empty, and therefore that
// document will have only 1 feature
EXPECT_EQ(otherDoc->getObjects().size(), 1);
}

View File

@@ -249,7 +249,8 @@ TEST_F(TopoShapeExpansionTest, MapperMakerModified)
// Check the result of the operations
EXPECT_EQ(transformMprMkr.modified(wire).size(), 1); // The Transformation acts on the Wire...
EXPECT_EQ(transformMprMkr.modified(face).size(), 1); // ... and therefor on the created Face...
EXPECT_EQ(transformMprMkr.modified(face).size(),
1); // ... and therefore on the created Face...
EXPECT_EQ(transformMprMkr.modified(edge).size(), 1); // ... and on the Edge added to the Face
EXPECT_EQ(splitMprMkr.modified(edge).size(), 0); // The Split doesn't modify the Edge