From 8b4a096b5088360eed893abd34e0fb177b94eff7 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 25 Aug 2019 23:05:19 -0400 Subject: [PATCH] Editor/CMakeLists: Add QT_NO_CAST_FROM_BYTEARRAY Disables implicit conversions from QByteArray, instead requiring such conversions to be explicit. --- Editor/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Editor/CMakeLists.txt b/Editor/CMakeLists.txt index 591cce8..f8d0595 100644 --- a/Editor/CMakeLists.txt +++ b/Editor/CMakeLists.txt @@ -65,6 +65,9 @@ target_compile_definitions(amuse-gui PRIVATE -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII + # Disable implicit conversions of QByteArray to const char* or const void* + -DQT_NO_CAST_FROM_BYTEARRAY + # Disable narrowing conversions in signal/slot connect() calls. -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT