Browse Source

feat(CI): Disallow implicit casting of QString to char*

QString holds UTF8 data which may not be a valid ASCII C string. Require
an explicit conversion if wanted.
reviewable/pr6616/r2
Anthony Bilinski 3 years ago
parent
commit
b5aa5dac63
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 1
      CMakeLists.txt

1
CMakeLists.txt

@ -103,6 +103,7 @@ if (UNIX AND NOT APPLE) @@ -103,6 +103,7 @@ if (UNIX AND NOT APPLE)
endif()
add_definitions(-DQT_NO_CAST_FROM_BYTEARRAY)
add_definitions(-DQT_NO_CAST_TO_ASCII)
include(CheckAtomic)

Loading…
Cancel
Save