diff options
author | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2015-04-23 10:34:36 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2015-04-23 10:24:36 +0000 |
commit | 886ab87bdf12468d0d32c2541437cd7174f486d7 (patch) | |
tree | 933e134421610e4ef9363ac4d3341ce7ff8d32f3 /qbs-resources | |
parent | 32d4ca135a25ae6b0c350dde3692741b7d862d82 (diff) |
Prevent automatic casting from char* to QString.
Reason 1: Internationalization.
Reason 2: Performance issues due to inadvertant
QString instantiations in hot code paths.
Task-number: QBS-780
Change-Id: I37c740dd828e11c5b0000a0dd472a519d032d71c
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'qbs-resources')
-rw-r--r-- | qbs-resources/imports/QbsProduct.qbs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qbs-resources/imports/QbsProduct.qbs b/qbs-resources/imports/QbsProduct.qbs index daf2e6efa..80fe5601d 100644 --- a/qbs-resources/imports/QbsProduct.qbs +++ b/qbs-resources/imports/QbsProduct.qbs @@ -4,5 +4,6 @@ import QbsFunctions Product { Depends { name: "Qt.core" } property string minimumQtVersion: "5.1.0" + cpp.defines: ["QT_NO_CAST_FROM_ASCII"] condition: QbsFunctions.versionIsAtLeast(Qt.core.version, minimumQtVersion) } |