mirror of https://github.com/AxioDL/amuse.git
Editor/CMakeLists: Add QT_NO_URL_CAST_FROM_STRING
Prevents implicit conversion from QString to QUrl in order to avoid potentially incorrect conversions from being performed. This makes all such conversions explicit.
This commit is contained in:
parent
e3dc475d7d
commit
694ecdd9c3
|
@ -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 implicit QString->QUrl conversions to enforce use of proper resolving functions.
|
||||||
|
-DQT_NO_URL_CAST_FROM_STRING
|
||||||
|
|
||||||
# Allows for more efficient string concatenation, resulting in less temporaries.
|
# Allows for more efficient string concatenation, resulting in less temporaries.
|
||||||
-DQT_USE_QSTRINGBUILDER
|
-DQT_USE_QSTRINGBUILDER
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue