From 87b1ca756c589bbc679ac7e31f7d0d9704a0b064 Mon Sep 17 00:00:00 2001 From: "Bradley T. Hughes" Date: Tue, 25 Oct 2011 13:29:09 +0200 Subject: Silence warning from clang ../../corelib/tools/qlocale_mac.mm:78:13: warning: '&&' within '||' [-Wlogical-op-parentheses] ...&& !qt_splitLocaleName(QString::fromLocal8Bit(result), lang, script, cntry)... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../corelib/tools/qlocale_mac.mm:78:13: note: place parentheses around the '&&' expression to silence this warning && !qt_splitLocaleName(QString::fromLocal8Bit(result), ... ^ Change-Id: I64f745e7dfa64f28f264667372ed64f9e34ca3b7 Reviewed-by: Robin Burchell Reviewed-by: Thiago Macieira (Intel) --- src/corelib/tools/qlocale_mac.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/corelib/tools/qlocale_mac.mm') diff --git a/src/corelib/tools/qlocale_mac.mm b/src/corelib/tools/qlocale_mac.mm index 89191418d3..82b6b00e5e 100644 --- a/src/corelib/tools/qlocale_mac.mm +++ b/src/corelib/tools/qlocale_mac.mm @@ -74,8 +74,8 @@ static QByteArray getMacLocaleName() QByteArray result = envVarLocale(); QString lang, script, cntry; - if (result.isEmpty() || result != "C" - && !qt_splitLocaleName(QString::fromLocal8Bit(result), lang, script, cntry)) { + if (result.isEmpty() + || (result != "C" && !qt_splitLocaleName(QString::fromLocal8Bit(result), lang, script, cntry))) { QCFType l = CFLocaleCopyCurrent(); CFStringRef locale = CFLocaleGetIdentifier(l); result = QCFString::toQString(locale).toUtf8(); -- cgit v1.2.3