1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 13:04:23 +00:00

Add QT_NO_CAST_FROM_BYTEARRAY to compile definitions

Prevents bugs like #13029, even if the ternary expression operands
have different types.
This commit is contained in:
FranciscoPombal 2020-06-23 11:40:10 +01:00
parent 0fa7fca31e
commit a1809a43f8
2 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
# defines # defines
add_definitions(-DQT_DEPRECATED_WARNINGS) add_definitions(-DQT_DEPRECATED_WARNINGS)
add_definitions(-DQT_NO_CAST_TO_ASCII) add_definitions(-DQT_NO_CAST_TO_ASCII)
add_definitions(-DQT_NO_CAST_FROM_BYTEARRAY)
add_definitions(-DQT_USE_QSTRINGBUILDER) add_definitions(-DQT_USE_QSTRINGBUILDER)
add_definitions(-DQT_STRICT_ITERATORS) add_definitions(-DQT_STRICT_ITERATORS)

View File

@ -57,6 +57,7 @@ include(../version.pri)
# Qt defines # Qt defines
DEFINES += QT_DEPRECATED_WARNINGS DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += QT_NO_CAST_TO_ASCII DEFINES += QT_NO_CAST_TO_ASCII
DEFINES += QT_NO_CAST_FROM_BYTEARRAY
DEFINES += QT_USE_QSTRINGBUILDER DEFINES += QT_USE_QSTRINGBUILDER
DEFINES += QT_STRICT_ITERATORS DEFINES += QT_STRICT_ITERATORS