Skip to content

Commit

Permalink
feat(CI): Disallow implicit casting of QString to char*
Browse files Browse the repository at this point in the history
QString holds UTF8 data which may not be a valid ASCII C string. Require
an explicit conversion if wanted.
  • Loading branch information
anthonybilinski committed Apr 5, 2022
1 parent f1b4011 commit b5aa5da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b5aa5da

Please sign in to comment.