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 /src/lib/corelib/tools/tst_tools.cpp | |
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 'src/lib/corelib/tools/tst_tools.cpp')
-rw-r--r-- | src/lib/corelib/tools/tst_tools.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/corelib/tools/tst_tools.cpp b/src/lib/corelib/tools/tst_tools.cpp index 8c6f0a13e..4d1686f84 100644 --- a/src/lib/corelib/tools/tst_tools.cpp +++ b/src/lib/corelib/tools/tst_tools.cpp @@ -27,6 +27,9 @@ ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. ** ****************************************************************************/ + +#undef QT_NO_CAST_FROM_ASCII // I am qmake, and I approve this hack. + #include "tst_tools.h" #include "buildoptions.h" |