Fix various typos and whitespace

This commit is contained in:
luzpaz
2023-03-10 12:35:18 +00:00
committed by Uwe
parent 31fa8187d5
commit 01e8bbc2bf
12 changed files with 19 additions and 19 deletions

View File

@@ -742,12 +742,12 @@ def getPlaneRotation(u, v, _ = None):
v : Base::Vector3
Hint for the second vector.
_ : Ignored. For backwards compatibility
Returns
-------
Base::Matrix4D
The new rotation matrix defining a new coordinate system,
or `None` if `u` or `v` is `None` or
or `None` if `u` or `v` is `None` or
if `u` and `v` are parallel.
"""
if (not u) or (not v):

View File

@@ -101,7 +101,7 @@ if(BUILD_FEM_VTK)
TaskPostDataAtPoint.ui
TaskPostDisplay.ui
TaskPostScalarClip.ui
TaskPostWarpVector.ui
TaskPostWarpVector.ui
)
endif(BUILD_FEM_VTK)
@@ -282,7 +282,7 @@ if(BUILD_FEM_VTK)
TaskPostDataAtPoint.ui
TaskPostDisplay.ui
TaskPostScalarClip.ui
TaskPostWarpVector.ui
TaskPostWarpVector.ui
)
endif(BUILD_FEM_VTK)
SOURCE_GROUP("Task_Boxes" FILES ${FemGui_SRCS_TaskBoxes})

View File

@@ -34,7 +34,7 @@
# include <TopoDS_Face.hxx>
#endif
// neccessary for the feature despite not all are necessary for compilation
// necessary for the feature despite not all are necessary for compilation
#include <pybind11/eigen.h>
#include <pybind11/numpy.h>
#include <pybind11/operators.h>

View File

@@ -362,7 +362,7 @@ void ExtrusionHelper::checkInnerWires(std::vector<bool>& isInnerWire, const gp_D
}
if (saveIsInnerWireIterator == *isInnerWireIterator)
// nothing was changed and we can remove it from the list to be checked
// but we cannot do this before the foor loop was fully run
// but we cannot do this before the for loop was fully run
toDisable[outer] = true;
++isInnerWireIterator;
++toCheckIterator;

View File

@@ -635,7 +635,7 @@ void DlgFilletEdges::setupFillet(const std::vector<App::DocumentObject*>& objs)
* will do the check
*
// If sub-objects are already selected then only add the un-selected parts.
// This is impotant to avoid recursive calls of rmvSelection() which
// This is important to avoid recursive calls of rmvSelection() which
// invalidates the internal iterator (#0002200).
if (selIt != selObj.end()) {
std::vector<std::string> selElements = selIt->getSubNames();

View File

@@ -48,14 +48,14 @@ class TopoShapeListTest(unittest.TestCase):
self.assertLessEqual(error, maxError, "TopoShapeList entry 1 has wrong volume: {0}".format(boxes[1].Volume))
error = abs(3.0 - boxes[2].Volume)
self.assertLessEqual(error, maxError, "TopoShapeList entry 2 has wrong volume: {0}".format(boxes[2].Volume))
twoboxes = [boxes[1], boxes[2]]
doc.openTransaction("Change shapes")
obj.Shapes = twoboxes
doc.commitTransaction()
doc.commitTransaction()
self.assertEqual(len(obj.Shapes), 2, "TopoShapeList has wrong entry count (1): {0}".format(len(obj.Shapes)))
doc.undo()
self.assertEqual(len(obj.Shapes), 3, "TopoShapeList has wrong entry count (2): {0}".format(len(obj.Shapes)))

View File

@@ -256,7 +256,7 @@ App::DocumentObject *Feature::getSubObject(const char *subname,
// supposed to be contained inside a body. It makes
// little sense to transform its sub-object. So if 'no
// transform' is requested, we need to actively apply
// an inverse trasnform.
// an inverse transform.
_mat = Placement.getValue().inverse().toMatrix();
if (pmat)
*pmat *= _mat;

View File

@@ -729,7 +729,7 @@ void prepareProfileBased(PartDesign::Body *pcActiveBody, Gui::Command* cmd, cons
// `ProfileBased::getProfileShape()` and other methods will return
// just the sub-shapes if they are set. So when whole sketches are
// desired, don not set sub-values.
// desired, don't set sub-values.
if (feature->isDerivedFrom(Part::Part2DObject::getClassTypeId()) &&
subName.compare(0, 6, "Vertex") != 0)
runProfileCmd();

View File

@@ -626,7 +626,7 @@ void TaskExtrudeParameters::setDirectionMode(int index)
extrude->UseCustomVector.setValue(false);
}
// if we dont use custom direction, only allow to show its direction
// if we don't use custom direction, only allow to show its direction
if (index != DirectionModes::Custom) {
ui->XDirectionEdit->setEnabled(false);
ui->YDirectionEdit->setEnabled(false);

View File

@@ -436,12 +436,12 @@ The grid spacing change if it becomes smaller than this number of pixel.</string
<class>Gui::QuantitySpinBox</class>
<extends>QAbstractSpinBox</extends>
<header>Gui/QuantitySpinBox.h</header>
</customwidget>
</customwidget>
<customwidget>
<class>Gui::PrefColorButton</class>
<extends>Gui::ColorButton</extends>
<header>Gui/PrefWidgets.h</header>
</customwidget>
</customwidget>
<customwidget>
<class>Gui::ColorButton</class>
<extends>QPushButton</extends>

View File

@@ -15,7 +15,7 @@ class MainWindow(QtGui.QMainWindow):
# when setting up the internally used network interface. Doing this before
# creating the icons fixes the issue.
QtNetwork.QNetworkConfigurationManager()
@QtCore.Slot()
def on_actionEmbed_triggered(self):
FreeCADGui.showMainWindow()
@@ -33,11 +33,11 @@ class MainWindow(QtGui.QMainWindow):
return "Gui::BlankWorkbench"
FreeCADGui.addWorkbench(BlankWorkbench)
FreeCADGui.activateWorkbench("BlankWorkbench")
@QtCore.Slot()
def on_actionDocument_triggered(self):
FreeCAD.newDocument()
@QtCore.Slot()
def on_actionCube_triggered(self):
FreeCAD.ActiveDocument.addObject("Part::Box")

View File

@@ -24,7 +24,7 @@ TEST(License, direct)
TEST(License, findLicenseByIdent)
{
App::TLicenseArr arr {App::licenseItems.at(App::findLicense("CC_BY_40"))};
EXPECT_STREQ(arr.at(App::posnOfIdentifier), "CC_BY_40");
EXPECT_STREQ(arr.at(App::posnOfFullName), "Creative Commons Attribution");
EXPECT_STREQ(arr.at(App::posnOfUrl), "https://creativecommons.org/licenses/by/4.0/");