summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/tools/qstring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qstring.cpp b/src/corelib/tools/qstring.cpp
index 87b222881c..7c4280d36b 100644
--- a/src/corelib/tools/qstring.cpp
+++ b/src/corelib/tools/qstring.cpp
@@ -5402,7 +5402,7 @@ int QString::compare_helper(const QChar *data1, int length1, const char *data2,
Qt::CaseSensitivity cs)
{
if (!data2)
- return int(bool(data1));
+ return length1;
if (Q_UNLIKELY(length2 < 0))
length2 = int(strlen(data2));
// ### make me nothrow in all cases