wmayer
b13284a221
Base: let interpreter keep track of created modules
2022-03-13 22:34:01 +01:00
wmayer
b78dc894e1
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
wmayer
5fd93b7d3b
Fix several coverity issues:
...
* CID 350617: Dereference after null check
* CID 350585: Out-of-bounds read
* CID 350624: Resource leak
* CID 332701: Uncaught exception
* CID 350642: Uninitialized scalar field
* CID 350590: Uninitialized scalar field
* CID 350629: Uninitialized scalar variable
* CID 350602: Uninitialized scalar variable
* CID 350564: Uninitialized scalar variable
* CID 350548: Uninitialized scalar variable
2022-03-13 12:12:49 +01:00
wmayer
08b77bff08
Core/Mod: modernize C++11
...
* use nullptr
2022-03-09 21:55:31 +01:00
wmayer
18a7cc8d18
Base: [skip ci] change identation in Console.h
2022-03-09 01:04:16 +01:00
Uwe
6f746497c1
[Base] compile fix for Windows without PCH
2022-03-08 03:00:36 +01:00
wmayer
040b67634e
Base: [skip ci] Optimize includes to reduce compile time
2022-03-07 16:49:01 +01:00
wmayer
4a343ab31e
Base/App: fix warnings from code analysers:
...
* convert old-style-casts to explicit C++ casts where possible
* make some implicit conversions explicit
2022-03-06 23:49:30 +01:00
wmayer
985ad1c9d1
Base: [skip ci] revert copyright change
2022-03-06 22:20:35 +01:00
Stefan Brüns
4d63de1fe7
Base: Fix wrong character encoding for micro-siemens
...
Contrary to any other Unit with micro prefix (e.g. ug, uH, uF) the
string was created with a Latin1 encoding instead of UTF-8.
The problem can be verified with these python statements:
```
FreeCAD.Units.schemaTranslate(FreeCAD.Units.MicroSiemens, 0)
FreeCAD.Units.schemaTranslate(FreeCAD.Units.MicroGram, 0)
```
2022-03-06 11:20:09 -05:00
Uwe
ded61a5fd5
[Base] ConsoleObserver: fix compilation with precompiled headers
2022-03-06 15:08:09 +01:00
Uwe
8e12e6ac98
[Base] ConsoleObserver: correct copyright
2022-03-06 14:51:58 +01:00
wmayer
91e4e468dd
Base: move ILogger sub-classes to their own source files in order to reduce including stream classes in client code
2022-03-06 10:13:47 +01:00
wmayer
a6624ef264
Base: fix warnings from code analysers:
...
* replace some C-style casts with static_cast
* remove unneeded destructors
* define default copy-constructor and assignment operator
2022-03-05 19:03:21 +01:00
wmayer
6c2e1a2d6e
Base: implement a lightweight smart pointer for PyObject like Py::Object to reduce includes of Python.h in header files
2022-03-04 15:51:51 +01:00
wmayer
6ff1ccb140
Base: use forward declaration instead of including Python.h
2022-03-03 19:18:07 +01:00
wmayer
dc1f35804d
Base: use forward declaration instead of including Python.h
2022-03-03 17:37:13 +01:00
Yorik van Havre
1bb6d2528f
Fixed missing include
2022-03-03 13:12:46 +01:00
Uwe
05dab0065b
[Base] Exception and others: remove unused includes
2022-03-03 01:01:10 +01:00
Uwe
a816ee1fa1
[Base] BoundBox etc.: remove unused includes
2022-03-02 13:59:59 +01:00
Uwe
8335466b27
[Base] Parameter and Matrix: remove unused includes
2022-03-02 13:28:34 +01:00
Uwe
71d6e43d54
[Base] some sorting and cleanup
2022-03-02 01:51:05 +01:00
Uwe
38ea286f28
[Base] Geometry etc.: remove unused includes
2022-03-01 13:56:02 +01:00
wmayer
9805bceec4
Base: fix warnings reported by code analysers
...
* disable copy-constructor and assignment operator for Stream classes
* remove destructor of sub-classes of SequencerBase
* fix some old C-style cast warnings
2022-03-01 12:20:27 +01:00
Uwe
6a9310499a
[Base] Py and Placement: remove unused includes
2022-03-01 12:13:58 +01:00
Uwe
686a025416
[Base] Quantity, Rotation, Stream: remove unused includes
2022-03-01 11:27:54 +01:00
Uwe
5b1114e914
[Base] Reader and Writer: remove unused includes
2022-02-27 23:54:00 +01:00
Uwe
ca8d93bb97
[Base] remove unused code
2022-02-27 19:30:09 +01:00
wmayer
27d2a8d17b
Base: fix build failure with MSYS/clang
2022-02-26 12:08:02 +01:00
wmayer
40077d4109
Base: [skip ci] fix build failure with MSYS/clang
2022-02-26 11:16:57 +01:00
Uwe
4d0a5c045c
[Base] Units and Uui: remove unused includes
2022-02-24 11:08:56 +01:00
Uwe
832a6eb43b
[Base] Console and BaseClass: remove unused includes
2022-02-24 09:34:01 +01:00
Uwe
581a66aa2d
[Base] Exception and FileInfo: remove unused includes
2022-02-23 19:13:13 +01:00
Uwe
7d1e7fa506
[Base] rename a variable to please the spellchecker CI
2022-02-23 00:40:21 +01:00
Uwe
288ccdb004
[Base] fix typo to silence spellchecker CI
2022-02-22 02:31:51 +01:00
Uwe
e2dd2627e8
fix some typos to silence the spellchecker CI
2022-02-21 13:09:29 +01:00
wmayer
0208608b9e
Base: fix Matrix4D::hasScale
...
* If all column vectors of the 3x3 sub-matrix are equal the function incorrectly claims that it's uniform scaling.
* Detect also non-uniform scaling and if was applied from the left or right side
* Replace the int with an enum and expose it to Python
* Add several new unit tests
2022-02-15 21:05:11 +01:00
wmayer
13e985252d
Base: [skip ci] include header with export macro
2022-02-13 16:36:18 +01:00
wmayer
077c272d14
Base: in TimeInfo replace uint64_t with int64_t
2022-02-13 16:29:22 +01:00
luz paz
6718d8797e
Fix some typos and whitespace
2022-02-12 19:33:28 +01:00
0penBrain
6030e9aac5
Base: introduce uniform scaling of matrix
2022-02-08 17:18:54 +01:00
0penBrain
1e22d2ea19
Base: fix move+scale Python error cleaning after parsing args
2022-02-08 17:18:54 +01:00
wmayer
3bc1e62604
Base: expose UnitsApi::toNumber to Python
2022-02-06 12:47:57 +01:00
wmayer
e38f378acc
Base: harmonize UnitsApi::toString/UnitsApi::toNumber with UnitsSchema::toLocale
2022-02-06 12:47:13 +01:00
wmayer
e5a3854fe2
Base: [skip ci] fix inconsistency in overloaded UnitsApi::toNumber()
2022-02-06 08:49:50 +01:00
Yann LEROY
82090b6a8c
Base: Remove old unused C-style function
...
Those function was used by a commented code, hence never called.
Since it don't have been change for a long time,
it should be safe to remove them.
2022-02-05 19:03:39 +01:00
wmayer
9d9de3d51b
Base: [skip ci] add comment about possible issues with Matrix4D::hasScale()
2022-02-04 20:28:46 +01:00
wmayer
a5f0265a43
Base: support of multiplication of a matrix with a scalar, add functions to check whether it's the unit or null matrix
2022-02-04 14:35:27 +01:00
0penBrain
49d628ffb0
Base: fix bug in matrix multiplication (Python API)
2022-02-04 03:50:44 +01:00
Chris Hennes
b7794444bd
Core: Python translate() wrapper arg correction
...
translate()'s third argument is an optional string used as a comment:
"None" is a valid value for this argument (and is indeed the stated
default in the documentation), but as originally written it was not
accepted, only actual strings were allowed. This commit modifies the
format string from "s" to "z", allowing an explicit None argument.
2022-02-01 21:12:49 -06:00