summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-03-26 15:33:25 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-03-27 11:08:38 (GMT)
commit97a3b2d04dbfd9c56f1181b5f45864bcb1472099 (patch)
tree4608a663dea1d47f4acbb9586fcb0aa5d69c7f95 /src/corelib
parentc211bfceadc4a83163e983d4a388becb7ee0aca5 (diff)
downloadQt-97a3b2d04dbfd9c56f1181b5f45864bcb1472099.zip
Qt-97a3b2d04dbfd9c56f1181b5f45864bcb1472099.tar.gz
Qt-97a3b2d04dbfd9c56f1181b5f45864bcb1472099.tar.bz2
remove pointless check
this function is always called with found != 0 nowadays
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/kernel/qtranslator.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/kernel/qtranslator.cpp b/src/corelib/kernel/qtranslator.cpp
index f97a319..1eca817 100644
--- a/src/corelib/kernel/qtranslator.cpp
+++ b/src/corelib/kernel/qtranslator.cpp
@@ -95,8 +95,7 @@ static bool match(const uchar* found, const char* target, uint len)
// (normalize it to be without the zero-terminating symbol)
if (len > 0 && found[len-1] == '\0')
--len;
- // 0 means anything, "" means empty
- return !found || (qstrncmp((const char *)found, target, len) == 0 && target[len] == '\0');
+ return (qstrncmp((const char *)found, target, len) == 0 && target[len] == '\0');
}
static uint elfHash(const char *name)