Commit Graph

984 Commits

Author SHA1 Message Date
wmayer
f5235a8057 cppcoreguidelines-pro-type-union-access
According to https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md using union for type-punning is undefined behaviour.
 Replace it with std::memcpy
2022-06-24 14:29:50 +02:00
marioalexis
fbfb6c3ed3 Base: Use PyObject_IsTrue in combination with conditional ternary operator 2022-06-22 19:50:03 -04:00
ShuffleWire
f09040052a Base: add Const attribute to many MatrixPy methods
multiply(), determinant(), isOrthogonal(),
submatrix(), analyze() also get the const attribute
2022-06-22 19:16:38 -04:00
wmayer
41c7edc6d5 Base: add Const attribute to MatrixPy::inverse() 2022-06-22 13:49:11 +02:00
marioalexis
adfac77e61 Base: Add function to get Python object types for SWIG interfaces 2022-06-21 21:01:37 -04:00
marioalexis
f5c5de9d61 Base: Fix wrong function name in RotationPy documentation. 2022-06-20 02:12:16 +02:00
marioalexis
af94c6c9b7 Base: Set angle in Rotation::inverse function 2022-06-19 15:44:05 +02:00
Uwe
a04db55476 [Base] remove unnecessary Boolean comparisons 2022-06-19 15:17:50 +02:00
marioalexis
fb30939e8f Base: Improve docstrings in BoundBoxPy.xml 2022-06-13 08:42:40 -04:00
wmayer
1a269929d0 Base: unset flag to skip leading whitespaces when copying a file 2022-06-13 08:43:58 +02:00
marioalexis
16e4b05207 Base: Improve docstrings in PersistencePy.xml 2022-06-08 00:52:19 +02:00
marioalexis
18e7a0a612 Base: Improve docstrings in VectorPy.xml 2022-06-04 15:39:05 +02:00
wmayer
e3c384263c Base: raise TypeError if Vector is multiplied with unsupported type 2022-06-04 13:21:04 +02:00
wmayer
7d1a5b1d6a Base: use const char* 2022-06-04 13:20:07 +02:00
wmayer
12e069779e Base: include header in PCH 2022-06-04 13:18:08 +02:00
wmayer
133be410ca Base: improve initialization according to cpp core guidelines 2022-06-04 13:17:27 +02:00
wmayer
fb55d8a9d5 Base: remove redundant void 2022-06-04 13:14:55 +02:00
wmayer
dd67d9c890 Base: avoid const_cast in FileInfo 2022-06-04 13:13:36 +02:00
marioalexis
3604a9de77 Base: Improve docstrings in CoordinateSystemPy.xml 2022-06-02 16:26:31 +02:00
marioalexis
bf472c51e3 Base: Improve docstrings in TypePy.xml 2022-06-02 16:25:55 +02:00
luz paz
a526451afd Fix various typos 2022-06-01 18:03:40 -04:00
marioalexis
a8bc5ca35b Base: Fix bad parse argument in AxisPyImp.cpp 2022-05-31 12:55:54 -04:00
marioalexis
aed7ab0367 Base: Improve docstrings in MatrixPy.xml 2022-05-31 11:48:04 +02:00
marioalexis
8c7849f25f Base: Fix undefined behaviour in row/col functions and code clean up 2022-05-31 11:48:04 +02:00
marioalexis
d6981c228a Base: Improve docstrings in RotationPy.xml 2022-05-29 10:34:59 +02:00
marioalexis
941ea70507 Base: Improve docstrings in PlacementPy.xml 2022-05-27 09:53:29 +02:00
marioalexis
41afe9d8ae Base: Improve docstrings in AxisPy.xml 2022-05-26 23:31:18 +02:00
marioalexis
9bb56a98a9 Base: Prevent crash when trying to create badType instance 2022-05-24 13:28:14 +02:00
wmayer
bec323b793 Base: cosmetic changes 2022-05-12 17:49:55 +02:00
wmayer
4b483807c7 Base: replace several reinterpret_cast 2022-05-11 20:01:40 +02:00
Oliver Oxtoby
9e388ab0a8 Base: Remove extraneous bracket from string representation of kinematic viscosity units in MKS schema 2022-05-11 08:09:46 +02:00
wmayer
37611d6e02 Base: fixes #6802: Raise an exception when using FileInfo::toStdWString() for other platforms than Windows 2022-05-09 14:21:10 +02:00
wmayer
80c900cf52 Base: fix conversion from Placement to Matrix
See also: https://forum.freecadweb.org/viewtopic.php?f=3&t=61000
2022-04-29 13:45:50 +02:00
wmayer
a6745b15c0 Base: fix a possible naming clash with 'timezone' with Py3.6 on Windows 2022-04-28 16:05:30 +02:00
Zheng, Lei
8bec44934b Fix mixed line endings 2022-04-26 12:52:55 -05:00
0penBrain
6182059a0f Core: partially revert 83233a7 that introduced composed units
Parser shall only deal with atomic units or it breaks other composed units
 Fixes #6735
2022-04-13 03:45:39 +02:00
0penBrain
b7860d20e6 [Core] Persistence: improve NotImplemented exception presentation to user 2022-04-08 10:55:31 +02:00
0penBrain
5cb11cb562 Fix typo 2022-04-08 10:55:31 +02:00
wmayer
568fbc3e35 Base: add method isEqual() to Base::Flags<> to simplify comparison 2022-04-05 19:09:14 +02:00
0penBrain
caa4784550 Base: fix quantity construction when unit as string is empty 2022-04-02 18:09:35 +02:00
wmayer
fa41fd82ab Base: [skip ci] make Flags<>::testFlag a const method 2022-03-31 23:17:48 +02:00
wmayer
f62a6c8658 Base: fix possible Python type mismatch for Base::Vector2dPy
when using FreeCAD as a pure Python module.

See forum topic: https://forum.freecadweb.org/viewtopic.php?f=10&t=67617
2022-03-31 15:08:48 +02:00
Chris Hennes
b5c72abee4 Base: PR6497 move return statement to new line 2022-03-29 12:34:34 -05:00
wmayer
8c35e7776c Base: [skip ci] optimize iteration over container with parameter group elements 2022-03-29 15:25:54 +02:00
wmayer
c01846c3e7 Base: fix handling of path separators in parameter group names 2022-03-29 14:54:03 +02:00
wmayer
d5fd3f996e Base: make Parameter class less vulnerable for invalid user config files 2022-03-24 11:43:39 +01:00
wmayer
055793e12c Base: [skip ci] remove several superfluous static_cast 2022-03-24 11:27:55 +01:00
wmayer
d21a60b294 All: modernize C++11
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
4183c45a01 Base: modernize C++11
* use nullptr
2022-03-23 16:57:25 +01:00
wmayer
585bcb8708 lgtm: [skip ci] FIXME comment
Change FIXME or remove it
2022-03-20 16:51:23 +01:00