marioalexis
1972dfe5a3
Base: Replace C cast
2022-09-18 11:06:51 -05:00
wmayer
7824d7b1df
Base: fix several warnings reported by code analyzers
2022-08-02 13:04:50 +02:00
berniev
8aff4a7503
Base: Modernise ctors dtors defs etc
2022-08-02 12:37:46 +02:00
Uwe
90abdf2752
[Base] remove some more superfluous nullptr checks
2022-07-18 13:07:16 +02:00
Uwe
53571f7196
[Base] remove superfluous nullptr checks
2022-07-18 03:16:22 +02:00
wmayer
1ae55905ba
Py: make FreeCAD to compile with Py3.11
2022-07-01 17:54:50 +02:00
wmayer
c955372ecf
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
82da0065c4
Base: Add function to get Python object types for SWIG interfaces
2022-06-21 21:01:37 -04:00
Zheng, Lei
3ef438eaf0
Fix mixed line endings
2022-04-26 12:52:55 -05:00
Chris Hennes
3b42d4afac
Base: PR6497 move return statement to new line
2022-03-29 12:34:34 -05:00
wmayer
882e34f2ce
Base: modernize C++11
...
* use nullptr
2022-03-23 16:57:25 +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
d69defaa3c
Py: replace BaseExceptionFreeCADError with more suitable exception types
2022-03-17 13:54:23 +01:00
wmayer
a22608b7b5
Base: let interpreter keep track of created modules
2022-03-13 22:34:01 +01:00
wmayer
58a719e207
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
Uwe
6afab502ca
[Base] Geometry etc.: remove unused includes
2022-03-01 13:56:02 +01:00
Uwe
d11d00cb70
[Base] fix typo to silence spellchecker CI
2022-02-22 02:31:51 +01:00
wmayer
44e82ac3c4
App: remove some more deprecated Py2 code
...
and remove deprecated void from function signature and replace 0 or NULL with nullptr
2021-04-26 10:55:56 +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
luz paz
142c2c2c4d
Base: remove Py2 code
2021-04-26 09:23:58 +02:00
wmayer
df0f979f3b
App/Gui: fix memory leaks:
...
+ add function to cleanup units and quantities in debug build
+ fix reference leak in PropertyVector::getPyPathValue()
+ fix reference leak in PropertyPlacement::getPyPathValue()
+ in InterpreterSingleton::init() use a static std::vector<wchar_t*> instead of a C array
to free memory at program end
+ in MainWindow::closeEvent() explicitly delete all task watchers
+ in ReportOutputObserver constructor pass parent to QObject
+ in PropertyEditor destructor explicitly delete QItemEditorFactory
2021-02-27 10:56:19 +01:00
wmayer
a152cd2d96
Py: [skip ci] replace PyList_Append with Py::List::append
2020-12-13 16:44:14 +01:00
luz paz
d5f6c096b8
Base: Fix header uniformity, whitespace, and doxygen
...
[skip ci]
2020-11-22 18:12:16 +01:00
wmayer
0d27ad18ca
Base: [skip ci] fix several -Wunused-parameter warnings
2020-11-06 08:15:44 +01:00
wmayer
36bece9925
Base: [skip ci] fix several -Wunused-parameter warnings
2020-11-06 08:14:00 +01:00
wmayer
34c11fcc63
Base: Py2 related fix
2020-09-04 19:02:29 +02:00
wmayer
1c91c1287e
Base: [skip ci] Various fixes in InterpreterSingleton::runStringWithKey:
...
+ fix memory leak (localDictionary) by replacing C API with PyCXX
+ don't write the whole code as error message if an error occurs. Python raises an exception with all relevant information for debugging
2020-09-04 09:58:21 +02:00
mwganson
df0204466e
[CheckGeometry] fix segfault, reformat output with lower case, use try/except to check for runtime python errors and fall back on OCCT method if script failed.
2020-09-03 12:09:38 +02:00
mwganson
b553ebe48b
[check geometry] decrement some pyobject references
2020-09-03 12:09:38 +02:00
mwganson
9bb3b0e046
[CheckGeometry] fix python2 build
2020-09-03 12:09:38 +02:00
mwganson
1b8a410d29
[CheckGeometry] fix py2 build failure
2020-09-03 12:09:38 +02:00
mwganson
dc3befbff3
[CheckGeometry] update a source code comment
2020-09-03 12:09:38 +02:00
mwganson
a4e38baeb3
[CheckGeometry] add new shapecontent builder instead of OCCT's to correct some errors in OCCT's values and to add for some more advanced information, e.g. volume or area, add new method to Base::Interpreter runStringWithKey() -- allows to run a python script and get a string return value
2020-09-03 12:09:38 +02:00
wmayer
3b0eeb63e8
LGTM: [skip ci] fix: Inconsistent definition of copy constructor and assignment ('Rule of Two')
...
Remove user-defined copy constructor of Exception classes without assignment operator
2020-07-27 13:47:41 +02:00
wmayer
3f212ad8ac
Porting Py3.8/Py3.9:
...
Since Py3.3: 'Py_ssize_t PyUnicode_GetSize(PyObject*)' is deprecated [-Wdeprecated-declarations]
Since Py3.9: 'PyObject* PyEval_CallObjectWithKeywords(PyObject*, PyObject*, PyObject*)' is deprecated [-Wdeprecated-declarations]
Since Py3.9: 'void PyEval_InitThreads()' is deprecated [-Wdeprecated-declarations]
2020-06-12 17:51:33 +02:00
luz.paz
d36c3ebe57
Trivial code formatting for some {.cpp,.h} files
2020-04-06 12:55:27 +02:00
wmayer
49bfbf73f8
Base: [skip ci] add method to more easily set the Python error indicator from a Base::Exception
2020-03-18 17:53:13 +01: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
asapelkin
8bc5b585c8
Used single quotes for single character in string::find algorithm, more efficient
2019-11-21 18:59:43 +01:00
luz.paz
5b74dc8b0d
Fix typos in src/Base
2019-08-17 15:32:49 +02:00
Zheng, Lei
59417068f5
Base: improve exception
...
For better FC and Python exception mapping.
2019-08-17 14:52:08 +02:00
wmayer
81ae5688d4
replace raw string with normal C string to fix build failure
2019-05-23 23:28:33 +02:00
ezzieyguywuf
81bae31085
Added python virtual environment initialization, if present.
2019-05-22 13:53:47 +02:00
wmayer
8d5d25da2e
fix crash when checking an empty error message of an exception
2019-04-01 11:22:55 +02:00
luz.paz
6e64b4f75d
Misc. typos
2018-05-19 12:06:34 -04:00
wmayer
7ed84a6590
workaround for bug in VS 2013 that occurs at Python init time
2018-04-15 19:05:06 +02:00
Unknown
a8ecffb652
Misc. typo fixes
...
Various workbenches
2017-12-23 14:30:30 +01:00
wmayer
770c9ce095
fix various coverity issues
2017-09-15 11:48:38 +02:00
wmayer
9513792292
py3: support of Python 3.4
2017-06-06 23:49:42 +02:00
wmayer
8ce343291b
py3: fox compiler warnings
...
issue 0000995
2017-06-04 00:17:57 +02:00