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
Uwe
9a42b61fcb
[Base] Py and Placement: remove unused includes
2022-03-01 12:13:58 +01:00
wmayer
2f276601f8
Fix generation and build of python classes for 3.8
2021-04-27 14:35:34 +02:00
markus
aa0dcff74f
Fix generation and build of python classes for 3.9
2021-04-27 00:41:53 +02:00
wmayer
86b1308f45
Base: [skip ci] do not make PyBaseProxy class declaration dependent on ATTR_TRACKING
2021-04-26 15:57:17 +02:00
wmayer
af16ab02a0
Base: remove some more deprecated Py2 code
...
and remove deprecated void from function signature and replace 0 or NULL with nullptr
2021-04-26 10:29:48 +02:00
wmayer
56fb65de62
Base: use Python's weak reference mechanism to avoid memory leaks due to cyclic dependencies
2021-04-23 11:02:19 +02:00
wmayer
a2574987b4
Base: [skip ci] remove Py2 code from PyObjectBase
2021-04-12 14:17:16 +02:00
luz paz
d5f6c096b8
Base: Fix header uniformity, whitespace, and doxygen
...
[skip ci]
2020-11-22 18:12:16 +01:00
wmayer
01af171a31
macOS: [skip ci] suppress some more Py3.8 warnings, suppress warnings about deprecated OpenGL API
2020-10-17 23:53:47 +02:00
wmayer
3430adda72
Py3: [skip ci] fix warning: missing field 'tp_print' initializer [-Wmissing-field-initializers]
...
This warning is only specific to Py3.8. See https://docs.python.org/3/c-api/typeobj.html
2020-10-15 15:25:42 +02:00
wmayer
39cd29c0d7
Part: [skip ci] include OCC hesder to PCHs, fix compiler warning when trying to delete void pointer
2020-09-28 20:23:33 +02:00
wmayer
afd6f39197
Base: [skip ci] allow to replace twin object of PyObjectBase
2020-09-28 11:21:20 +02:00
wmayer
fdc07cb6c9
Py3.8: [skip ci] missing initializer for member '_typeobject::tp_vectorcall' [-Wmissing-field-initializers]
2020-06-08 14:40:00 +02:00
luz.paz
6f11ed298a
src/Base: [skip ci] fix header uniformity
...
This PR fixes header uniformity across all `src/Base` files
2019-12-25 11:38:58 +01:00
Zheng, Lei
59417068f5
Base: improve exception
...
For better FC and Python exception mapping.
2019-08-17 14:52:08 +02:00
wmayer
3789a26014
add define to inactivate some code blocks if needed
2019-06-03 18:40:45 +02:00
wmayer
dedaa80762
fixes 0003771: Memory leak in Part.Face.Surface
2019-01-23 22:38:51 +01:00
wmayer
1d1abb6d29
fixes 0003311: SketchObjectPython - no addGeometry addConstraints setDriving...?
2018-09-27 21:47:03 +02:00
Michal Ulianko
faf8834484
py3.7 fix
...
PyUnicode_AsUTF8() returns const char* in py3.7 instead of char*. Making
changes to reflect that which should also be safe in
other Python versions.
2018-09-01 22:44:39 +02:00
wmayer
f8f4cd76cc
clear dict when invalidating Py object to fix possible cyclic references
2018-08-25 21:49:57 +02:00
Unknown
a8ecffb652
Misc. typo fixes
...
Various workbenches
2017-12-23 14:30:30 +01:00
wmayer
98f8879e24
Py3: in Py2 use string instead of unicode for identifier
2017-06-03 10:51:05 +02:00
wmayer
69d0e8bd7f
py3: partially revert of getattr -> getattro because getattro is only needed for the static callback function
...
issue 0000995
2017-06-03 10:51:05 +02:00
looooo
bc696e5ab5
py3: change of getattr -> getattro
...
issue 0000995
2017-06-03 10:51:05 +02:00
wmayer
df1e2642d0
replacement for PR 698
2017-04-27 23:05:40 +02:00
wmayer
63cb979328
fix reference leak
2017-04-27 15:26:46 +02:00
wmayer
a2dd176bc2
issue #0002996 : PyObjectBase notification chain can lead to unexpected changes to document
2017-04-27 15:09:28 +02:00
wmayer
bc525a41e6
fix crash due to GIL
2017-02-18 08:19:25 +01:00
wmayer
19111f1ed7
issue #2902 : track attribute objects in parent structure to notify about changes
2017-02-14 16:38:38 +01:00
wmayer
4f23b569b3
issue #0002902 : replace members of PyObjectBase with a PyDictObject
2017-02-14 13:09:09 +01:00
wmayer
b72aa9f369
issue #0002902 : PyObjectBase notification chain can lead to unexpected changes to document
2017-02-14 00:32:30 +01:00
wmayer
39bd5ea525
issue #0002867 : AttachExtension crash
2017-01-19 21:48:17 +01:00
wmayer
f408f3180b
fix -Wextra in FreeCADBase
2016-09-21 15:02:02 +02:00
wmayer
ee28daa669
+ replace old C casts with static_cast in generated C++ code, remove unused parent structure of Python classes, support of -1 as return value of setCustomAttributes
2015-09-27 22:08:08 +02:00
Mateusz Skowroński
43a4a5938c
Fix files encoding. Go from ISO8859-1 to UTF-8.
2015-09-21 19:50:49 -03:00
Sebastian Hoogen
5e51a6cdf7
fixes #0001422 : Subclass Exception
...
inherit Base.FreeCADError form RuntimeError
inherit Part.OCCError from Base.FreeCADError
inherit OCCDomainError from Part.OCCError
inherit OCCRangeError from Part.OCCError
inherit OCCConstructionError from OCCDomainError
inherit OCCDimensionError from OCCDomainError
Added PY_CATCH_OCC macro
replace PyExc_Exception
use FreeCADError in makeWireString
catch exception in BSplineCurve.increasedegree
2014-09-17 11:15:56 +02:00
wmayer
120ca87015
+ unify DLL export defines to namespace names
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00