Commit Graph

924 Commits

Author SHA1 Message Date
marioalexis
0c6c3e5211 Base: Improve docstrings in PersistencePy.xml 2022-06-08 00:52:19 +02:00
marioalexis
67c506d39e Base: Improve docstrings in VectorPy.xml 2022-06-04 15:39:05 +02:00
wmayer
f37574e809 Base: raise TypeError if Vector is multiplied with unsupported type 2022-06-04 13:21:04 +02:00
wmayer
0d6b5b7f30 Base: use const char* 2022-06-04 13:20:07 +02:00
wmayer
f7f85464a3 Base: include header in PCH 2022-06-04 13:18:08 +02:00
wmayer
31047be9fb Base: improve initialization according to cpp core guidelines 2022-06-04 13:17:27 +02:00
wmayer
ca9355b5cb Base: remove redundant void 2022-06-04 13:14:55 +02:00
wmayer
fc7f3f4e3d Base: avoid const_cast in FileInfo 2022-06-04 13:13:36 +02:00
marioalexis
ee4f4e8cb7 Base: Improve docstrings in CoordinateSystemPy.xml 2022-06-02 16:26:31 +02:00
marioalexis
297e3520ec Base: Improve docstrings in TypePy.xml 2022-06-02 16:25:55 +02:00
luz paz
a0c0b2616c Fix various typos 2022-06-01 18:03:40 -04:00
marioalexis
79a5cde3b5 Base: Fix bad parse argument in AxisPyImp.cpp 2022-05-31 12:55:54 -04:00
marioalexis
35c872d4f2 Base: Improve docstrings in MatrixPy.xml 2022-05-31 11:48:04 +02:00
marioalexis
98cb5d50af Base: Fix undefined behaviour in row/col functions and code clean up 2022-05-31 11:48:04 +02:00
marioalexis
8e1a23eadf Base: Improve docstrings in RotationPy.xml 2022-05-29 10:34:59 +02:00
marioalexis
914de33bf2 Base: Improve docstrings in PlacementPy.xml 2022-05-27 09:53:29 +02:00
marioalexis
0791001787 Base: Improve docstrings in AxisPy.xml 2022-05-26 23:31:18 +02:00
marioalexis
e76e4acb0f Base: Prevent crash when trying to create badType instance 2022-05-24 13:28:14 +02:00
wmayer
cbc0bfc24d Base: cosmetic changes 2022-05-12 17:49:55 +02:00
wmayer
b39c6f62b4 Base: replace several reinterpret_cast 2022-05-11 20:01:40 +02:00
Oliver Oxtoby
105b63bf5e Base: Remove extraneous bracket from string representation of kinematic viscosity units in MKS schema 2022-05-11 08:09:46 +02:00
wmayer
79f8798011 Base: fixes #6802: Raise an exception when using FileInfo::toStdWString() for other platforms than Windows 2022-05-09 14:21:10 +02:00
wmayer
cd65de7e44 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
8427d446e0 Base: fix a possible naming clash with 'timezone' with Py3.6 on Windows 2022-04-28 16:05:30 +02:00
Zheng, Lei
3ef438eaf0 Fix mixed line endings 2022-04-26 12:52:55 -05:00
0penBrain
78e1174018 Core: partially revert 4ab37fc 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
a2beab798b [Core] Persistence: improve NotImplemented exception presentation to user 2022-04-08 10:55:31 +02:00
0penBrain
1928bfed63 Fix typo 2022-04-08 10:55:31 +02:00
wmayer
dc3986ee10 Base: add method isEqual() to Base::Flags<> to simplify comparison 2022-04-05 19:09:14 +02:00
0penBrain
65822ec2f8 Base: fix quantity construction when unit as string is empty 2022-04-02 18:09:35 +02:00
wmayer
26a6c085c2 Base: [skip ci] make Flags<>::testFlag a const method 2022-03-31 23:17:48 +02:00
wmayer
e0e523e626 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
3b42d4afac Base: PR6497 move return statement to new line 2022-03-29 12:34:34 -05:00
wmayer
2578c3d2ac Base: [skip ci] optimize iteration over container with parameter group elements 2022-03-29 15:25:54 +02:00
wmayer
b47029998e Base: fix handling of path separators in parameter group names 2022-03-29 14:54:03 +02:00
wmayer
988a96b457 Base: make Parameter class less vulnerable for invalid user config files 2022-03-24 11:43:39 +01:00
wmayer
93f0c64704 Base: [skip ci] remove several superfluous static_cast 2022-03-24 11:27:55 +01:00
wmayer
97330443a2 All: modernize C++11
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
882e34f2ce Base: modernize C++11
* use nullptr
2022-03-23 16:57:25 +01:00
wmayer
c9a0fae9db lgtm: [skip ci] FIXME comment
Change FIXME or remove it
2022-03-20 16:51:23 +01:00
wmayer
27a2646415 Base: [skip ci] lgtm: Inconsistent definition of copy constructor and assignment ('Rule of Two') 2022-03-20 16:30:14 +01:00
wmayer
c8edbe0c30 Base: [skip ci] cleaning up modules is only needed for leak detectors 2022-03-20 13:39:22 +01:00
wmayer
be56aa082e Base: [skip ci] fix build failure if PCH is enabled 2022-03-20 13:34:32 +01:00
Uwe
c1ba1545a7 [Base] a compile for for MSVC 2022-03-19 15:02:19 +01:00
wmayer
a817a68c17 Base: add method FileInfo::createDirectories() to also create parent directories of a given path 2022-03-19 13:56:06 +01:00
wmayer
9160f06e1c Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError 2022-03-17 14:45:48 +01:00
wmayer
d69defaa3c Py: replace BaseExceptionFreeCADError with more suitable exception types 2022-03-17 13:54:23 +01:00
wmayer
10a13c6dbc Base: add more custom Python exception types 2022-03-17 11:29:09 +01:00
wmayer
a22608b7b5 Base: let interpreter keep track of created modules 2022-03-13 22:34:01 +01:00
wmayer
2dc78804b6 Core: Fix several coverity issues:
* CID 350582: Big parameter passed by value
* CID 350639: Big parameter passed by value
* CID 305234: Uncaught exception
* CID 316529: Uncaught exception
* CID 350597: Uncaught exception
* CID 350623: Uncaught exception
* CID 332690: Uncaught exception
* CID 332700: Unchecked return value
* CID 350576: Uninitialized scalar field
* CID 350587: Uninitialized scalar variable
* CID 192606: Uninitialized scalar field
* CID 332699: Uninitialized pointer field
* CID 350561: Dereference null return value
* CID 350610: Dereference null return value
* CID 350567: Dereference after null check
2022-03-13 13:53:32 +01:00