1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-22 12:34:19 +00:00

Disallow narrowing conversions in signal connection

This commit is contained in:
Chocobo1 2022-05-18 13:37:13 +08:00
parent 567dd3fabb
commit 7764169aa3
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
2 changed files with 9 additions and 6 deletions

View File

@ -21,6 +21,7 @@ macro(qbt_common_config)
QT_NO_CAST_FROM_ASCII QT_NO_CAST_FROM_ASCII
QT_NO_CAST_TO_ASCII QT_NO_CAST_TO_ASCII
QT_NO_CAST_FROM_BYTEARRAY QT_NO_CAST_FROM_BYTEARRAY
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
QT_USE_QSTRINGBUILDER QT_USE_QSTRINGBUILDER
QT_STRICT_ITERATORS QT_STRICT_ITERATORS
$<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG_OUTPUT> $<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG_OUTPUT>

View File

@ -61,12 +61,14 @@ CONFIG(release, debug|release) {
include(../version.pri) include(../version.pri)
# Qt defines # Qt defines
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050f02 DEFINES += \
DEFINES += QT_NO_CAST_FROM_ASCII QT_DISABLE_DEPRECATED_BEFORE=0x050f02 \
DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII \
DEFINES += QT_NO_CAST_FROM_BYTEARRAY QT_NO_CAST_TO_ASCII \
DEFINES += QT_USE_QSTRINGBUILDER QT_NO_CAST_FROM_BYTEARRAY \
DEFINES += QT_STRICT_ITERATORS QT_NO_NARROWING_CONVERSIONS_IN_CONNECT \
QT_USE_QSTRINGBUILDER \
QT_STRICT_ITERATORS
INCLUDEPATH += $$PWD INCLUDEPATH += $$PWD