Editor/CMakeLists: Add QT_NO_PROCESS_COMBINED_ARGUMENT_START

Disables an error-prone start() overload for QProcess. This prevents
cases where arguments to a process may be split unintentionally.
This commit is contained in:
Lioncash 2019-08-25 22:59:44 -04:00
parent 694ecdd9c3
commit f269b66f85
1 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,9 @@ target_compile_definitions(amuse-gui PRIVATE
# Disable narrowing conversions in signal/slot connect() calls. # Disable narrowing conversions in signal/slot connect() calls.
-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT
# Disable unsafe overloads of QProcess' start() function.
-DQT_NO_PROCESS_COMBINED_ARGUMENT_START
# Disable implicit QString->QUrl conversions to enforce use of proper resolving functions. # Disable implicit QString->QUrl conversions to enforce use of proper resolving functions.
-DQT_NO_URL_CAST_FROM_STRING -DQT_NO_URL_CAST_FROM_STRING