summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2013-03-14 02:24:32 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-18 21:48:10 (GMT)
commit3fe6a74576f8c0c4e04343e0db94364f76fea407 (patch)
treebadedb2ec5a31d6bb7e09aa7d938dbd4d6cbdf45 /src
parentab50a0677e14d1bad12a18f0b0b9f963c8162e78 (diff)
downloadQt-3fe6a74576f8c0c4e04343e0db94364f76fea407.zip
Qt-3fe6a74576f8c0c4e04343e0db94364f76fea407.tar.gz
Qt-3fe6a74576f8c0c4e04343e0db94364f76fea407.tar.bz2
WebKit: Fix using macro to determine Mac user agent architecture
Using || operator with #ifdef is incorrect. As a result, the architecture for the user agent is incorrectly set to PPC on an Intel Mac. This is a partial backport of r128775 in WebKit upstream. Task-number: QTBUG-30187 Change-Id: I6842f113fd024ababaf67e76dfee8f93e0988d08 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/3rdparty/webkit/Source/WebKit/qt/Api/qwebpage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/webkit/Source/WebKit/qt/Api/qwebpage.cpp b/src/3rdparty/webkit/Source/WebKit/qt/Api/qwebpage.cpp
index 21e04ce..078fe15 100644
--- a/src/3rdparty/webkit/Source/WebKit/qt/Api/qwebpage.cpp
+++ b/src/3rdparty/webkit/Source/WebKit/qt/Api/qwebpage.cpp
@@ -3800,7 +3800,7 @@ QString QWebPage::userAgentForUrl(const QUrl&) const
#elif defined Q_OS_WIN32
firstPartTemp += windowsVersionForUAString();
#elif defined Q_OS_DARWIN
-#ifdef __i386__ || __x86_64__
+#if CPU(X86) || CPU(X86_64)
firstPartTemp += QString::fromLatin1("Intel Mac OS X");
#else
firstPartTemp += QString::fromLatin1("PPC Mac OS X");