Chris Hennes
2dbe651626
App: Check for an invalid enum before proceeding
2025-03-22 07:15:15 +01:00
Chris Hennes
53e17174c0
App: Don't use std::forward inside loop
...
std::forward implies that sometimes its argument will be *moved*, leaving it invalid in the calling code. If that call is inside a loop that tries to reuse the data we have undefined behavior.
2025-03-22 07:15:15 +01:00
tritao
c20cc6804f
App: Remove XML binding files.
...
This PR removes the App XML API bindings files now that we have
equivalent Python binding files.
2025-03-21 16:43:59 +01:00
Florian Foinant-Willig
756e3789ce
Fix FreeCAD#19588
2025-03-20 20:14:50 +01:00
tritao
a178e3bb71
App: Modernize Python bindings with new API model.
2025-03-20 11:07:27 +01:00
xtemp09
b6a1a15b64
[App] Fix the crash reported in #20212
2025-03-19 00:23:22 -03:00
Chris Hennes
09cdcee1bb
App: Coverity fixes
2025-03-18 15:59:22 +01:00
Chris Hennes
eedb743959
Base: Coverity cleanup
2025-03-18 15:59:22 +01:00
Thomas Gimpel
b86c7c4a8f
App: reverted commit 8ff4b1b and improved comments in order to fix the MacOS build ( #20068 )
2025-03-17 20:23:01 +01:00
tritao
cdab9c7837
CMake: Cleanup targets with transitive dependencies
2025-03-17 12:12:06 +00:00
Chris Hennes
9a77120e82
Merge pull request #20142 from bofdahof/ranges
...
Apply C++20 std::ranges (mainly to std::find)
2025-03-17 03:08:27 -05:00
Chris Hennes
9e0d77d7f4
Merge pull request #19583 from hyarion/refactor/base-type
...
Refactor Base::Type
2025-03-17 00:03:22 -05:00
Chris Hennes
e0aa5f3c30
Merge pull request #19917 from tritao/refactor-document-recompute
...
Core: Refactor code around document and feature recompute
2025-03-16 23:59:12 -05:00
bofdahof
59c3bbe5c2
App: apply std::ranges
2025-03-16 17:14:38 -05:00
Chris Hennes
44908ad721
Merge pull request #19428 from tritao/base-tracy-profiler
...
Base: Add Tracy frame profiling support.
2025-03-14 04:12:05 +00:00
Joao Matos
0feab195ac
Base: Add build support and instrumentation for the Tracy profiler.
2025-03-14 03:41:30 +00:00
Chris Hennes
4ef5452cab
Merge pull request #20049 from hyarion/fix/ppa
...
Refactor static type checks
2025-03-10 16:53:00 +00:00
Chris Hennes
d099225d88
Merge pull request #20064 from bofdahof/application-remove-some-using-namespace
...
[App] Application remove some using namespace
2025-03-10 16:42:28 +00:00
Benjamin Nauck
cc6dcbd7e6
Refactor static type checks
2025-03-09 17:50:20 +01:00
bofdahof
b0d34801db
cleanup commented lines
2025-03-08 13:37:46 +10:00
bofdahof
7b3b7068ca
remove using namespace Base::FileInfo
2025-03-08 13:37:46 +10:00
bofdahof
bfe6d21163
remove using namespace boost::program_options
2025-03-08 13:20:32 +10:00
bofdahof
1dc20ee0d6
remove using namespace std
2025-03-08 13:18:06 +10:00
bofdahof
7a69a7d8c3
remove using namespace boost
2025-03-08 13:14:35 +10:00
bofdahof
5f691bee69
remove using namespace Base
2025-03-08 13:13:38 +10:00
Chris Hennes
feb58cca04
Merge pull request #20052 from mosfet80/CleanPython
...
removed old python code <3.10
2025-03-08 01:10:58 +00:00
Chris Hennes
144b44f2db
Merge pull request #20058 from tritao/fix-app-document-main-doc-load
...
App: Fix regression for document creation requests coming from the main document.
2025-03-07 23:28:27 +00:00
mos
9f220319d0
Removed old Python code <3.10
2025-03-07 16:34:08 -06:00
Joao Matos
08564607c2
App: Fix regression when creating new document coming from the main document.
2025-03-07 20:54:16 +00:00
Joao Matos
6dd5246fa1
Rename DocumentCreateFlags to DocumentInitFlags.
2025-03-07 20:54:16 +00:00
Joao Matos
ed111d1f8e
App: Fix memory leak regression in ApplicationPy::newDocument.
2025-03-07 20:42:51 +00:00
Joao Matos
81a5b78b36
Convert DocumentCreateFlags instances to use designated initializer list.
2025-03-07 20:42:51 +00:00
Chris Hennes
caccda384b
App: Cleanup parameter names in Application.*
...
* Unify names in header and cpp files
* Make names consistent across methods with similar uses
* Fix spacing
Co-authored-by: Benjamin Nauck <benjamin@nauck.se >
2025-03-07 08:47:49 -06:00
Benjamin Nauck
9fbccaf4b5
Base: Make Type::importModule private
2025-03-06 20:50:04 +01:00
Kevin Martin
e864b17a5a
Only do Label Change notification if the label truly changes
...
The code for setting the value of a Label property would do a quick return if the new label was equal to the current one, but otherwise the proposed new label might be modified to make it unique. If the modified new value were equal to the current value, a Change notification would still be generated. This no longer occurs.
2025-03-05 22:23:43 -05:00
Kevin Martin
3b87c991cb
Deregister DocumentObject's Label before deleting the object
...
Under certain circumstances the existing code would try to obtain the Label of a DocumentObject after that object had been deleted, causing an access to freed memory and failing to deregister the Label. The latter would lead to phanton Label collisions and unexpected generation of unique labels.
2025-03-05 22:23:42 -05:00
Chris Hennes
070e2cc8fa
App: Switch to isNullOrEmpty()
2025-03-03 19:24:15 -06:00
Chris Hennes
94adb6b28b
App: Minor formatting from review
...
Co-authored-by: Benjamin Nauck <benjamin@nauck.se >
2025-03-03 19:21:05 -06:00
bofdahof
9f880497ed
Calling static via instance
2025-03-03 19:21:04 -06:00
bofdahof
80b3a7e3de
Narrowing conversion
2025-03-03 19:21:04 -06:00
bofdahof
9d11fb9079
Don't use endl
2025-03-03 19:21:04 -06:00
bofdahof
65895ae0ed
Reserve vector size
2025-03-03 19:21:04 -06:00
bofdahof
e5497af44b
Redundant c_str()
2025-03-03 19:21:04 -06:00
bofdahof
f6f759a992
Else after return
2025-03-03 19:21:04 -06:00
bofdahof
e1eb7e6643
Declaration hides previous
2025-03-03 19:21:04 -06:00
bofdahof
0a4d9a2b37
C++ style cast instead of C
2025-03-03 19:21:04 -06:00
bofdahof
bffdf7feb2
Join declaration and assignment
2025-03-03 19:21:04 -06:00
bofdahof
1e4cecdc07
Use auto
2025-03-03 19:21:04 -06:00
bofdahof
a1c9ed4385
Simplify expression
2025-03-03 19:21:04 -06:00
bofdahof
668aaf7511
DRY
2025-03-03 19:20:59 -06:00