Title: [128775] trunk/Source/WebCore
- Revision
- 128775
- Author
- [email protected]
- Date
- 2012-09-17 10:54:57 -0700 (Mon, 17 Sep 2012)
Log Message
[Qt] Cleanup/refactor the user agent detection code
https://bugs.webkit.org/show_bug.cgi?id=96822
Unreviewed build fix.
Build fixes for Windows and Mac OS builds.
Patch by Lauro Neto <[email protected]> on 2012-09-17
* platform/qt/UserAgentQt.cpp:
(WebCore::UserAgentQt::standardUserAgent):
QLatin1String doesn't have a default contructor. Replaced #ifdef with #if.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (128774 => 128775)
--- trunk/Source/WebCore/ChangeLog 2012-09-17 17:53:38 UTC (rev 128774)
+++ trunk/Source/WebCore/ChangeLog 2012-09-17 17:54:57 UTC (rev 128775)
@@ -1,5 +1,19 @@
2012-09-17 Lauro Neto <[email protected]>
+ [Qt] Cleanup/refactor the user agent detection code
+ https://bugs.webkit.org/show_bug.cgi?id=96822
+
+ Unreviewed build fix.
+
+ Build fixes for Windows and Mac OS builds.
+
+ * platform/qt/UserAgentQt.cpp:
+ (WebCore::UserAgentQt::standardUserAgent):
+
+ QLatin1String doesn't have a default contructor. Replaced #ifdef with #if.
+
+2012-09-17 Lauro Neto <[email protected]>
+
Updates to the useragent patch
[Qt] Cleanup/refactor the user agent detection code
Modified: trunk/Source/WebCore/platform/qt/UserAgentQt.cpp (128774 => 128775)
--- trunk/Source/WebCore/platform/qt/UserAgentQt.cpp 2012-09-17 17:53:38 UTC (rev 128774)
+++ trunk/Source/WebCore/platform/qt/UserAgentQt.cpp 2012-09-17 17:54:57 UTC (rev 128775)
@@ -65,7 +65,7 @@
#if OS(MAC_OS_X)
"Macintosh; "
#elif OS(WINDOWS)
- // Nothing.
+ ""
#else
(QGuiApplication::platformName() == QLatin1String("xcb")) ? "X11; " : "Unknown; "
#endif
@@ -86,7 +86,7 @@
#elif OS(WINDOWS)
windowsVersionForUAString().latin1().data()
#elif OS(MAC_OS_X)
-#ifdef CPU(X86) || CPU(X86_64)
+#if CPU(X86) || CPU(X86_64)
"Intel Mac OS X"
#else
"PPC Mac OS X"
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes