mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-06 15:04:34 +08:00
Disallow narrowing conversions in signal connection
This commit is contained in:
parent
567dd3fabb
commit
7764169aa3
@ -21,6 +21,7 @@ macro(qbt_common_config)
|
||||
QT_NO_CAST_FROM_ASCII
|
||||
QT_NO_CAST_TO_ASCII
|
||||
QT_NO_CAST_FROM_BYTEARRAY
|
||||
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
|
||||
QT_USE_QSTRINGBUILDER
|
||||
QT_STRICT_ITERATORS
|
||||
$<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG_OUTPUT>
|
||||
|
14
src/src.pro
14
src/src.pro
@ -61,12 +61,14 @@ CONFIG(release, debug|release) {
|
||||
include(../version.pri)
|
||||
|
||||
# Qt defines
|
||||
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050f02
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
DEFINES += QT_NO_CAST_TO_ASCII
|
||||
DEFINES += QT_NO_CAST_FROM_BYTEARRAY
|
||||
DEFINES += QT_USE_QSTRINGBUILDER
|
||||
DEFINES += QT_STRICT_ITERATORS
|
||||
DEFINES += \
|
||||
QT_DISABLE_DEPRECATED_BEFORE=0x050f02 \
|
||||
QT_NO_CAST_FROM_ASCII \
|
||||
QT_NO_CAST_TO_ASCII \
|
||||
QT_NO_CAST_FROM_BYTEARRAY \
|
||||
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT \
|
||||
QT_USE_QSTRINGBUILDER \
|
||||
QT_STRICT_ITERATORS
|
||||
|
||||
INCLUDEPATH += $$PWD
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user