GCC 4.7 and C++11
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 May 2012 17:25:35 +0000 (17:25 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 May 2012 17:25:35 +0000 (17:25 +0000)
https://bugs.webkit.org/show_bug.cgi?id=86465

Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-05-21
Reviewed by Darin Adler.

Source/WebCore:

Avoid triggering C++11 string literals and use nullptr for correct type casting.

* bindings/js/JSNodeFilterCondition.cpp:
(WebCore::JSNodeFilterCondition::JSNodeFilterCondition):
* platform/sql/SQLiteFileSystem.cpp:
(WebCore::SQLiteFileSystem::getFileNameForNewDatabase):

Source/WebKit2:

Avoid triggering C++11 string literals.

* UIProcess/API/qt/tests/inspectorserver/tst_inspectorserver.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117798 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/bindings/js/JSNodeFilterCondition.cpp
Source/WebCore/platform/sql/SQLiteFileSystem.cpp
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/qt/tests/inspectorserver/tst_inspectorserver.cpp

index b847c86..2f2bb74 100644 (file)
@@ -1,3 +1,17 @@
+2012-05-21  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
+
+        GCC 4.7 and C++11
+        https://bugs.webkit.org/show_bug.cgi?id=86465
+
+        Reviewed by Darin Adler.
+
+        Avoid triggering C++11 string literals and use nullptr for correct type casting.
+
+        * bindings/js/JSNodeFilterCondition.cpp:
+        (WebCore::JSNodeFilterCondition::JSNodeFilterCondition):
+        * platform/sql/SQLiteFileSystem.cpp:
+        (WebCore::SQLiteFileSystem::getFileNameForNewDatabase):
+
 2012-05-18  Michael Nordman  <michaeln@google.com>
 
         [chromium] DomStorage events handling needs TLC (2)
index 86b51c4..120f638 100644 (file)
@@ -34,7 +34,7 @@ using namespace JSC;
 ASSERT_CLASS_FITS_IN_CELL(JSNodeFilterCondition);
 
 JSNodeFilterCondition::JSNodeFilterCondition(JSGlobalData&, NodeFilter* owner, JSValue filter)
-    : m_filter(filter.isObject() ? PassWeak<JSObject>(jsCast<JSObject*>(filter), &m_weakOwner, owner) : 0)
+    : m_filter(filter.isObject() ? PassWeak<JSObject>(jsCast<JSObject*>(filter), &m_weakOwner, owner) : nullptr)
 {
 }
 
index d487b95..411bf00 100644 (file)
@@ -75,10 +75,10 @@ String SQLiteFileSystem::getFileNameForNewDatabase(const String& dbDir, const St
     String fileName;
     do {
         ++seq;
-        fileName = pathByAppendingComponent(dbDir, String::format("%016"PRIx64".db", seq));
+        fileName = pathByAppendingComponent(dbDir, String::format("%016" PRIx64 ".db", seq));
     } while (fileExists(fileName));
 
-    return String::format("%016"PRIx64".db", seq);
+    return String::format("%016" PRIx64 ".db", seq);
 }
 
 String SQLiteFileSystem::appendDatabaseFileNameToPath(const String& path, const String& fileName)
index 1c4cb29..35fd1eb 100644 (file)
@@ -1,5 +1,16 @@
 2012-05-21  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
 
+        GCC 4.7 and C++11
+        https://bugs.webkit.org/show_bug.cgi?id=86465
+
+        Reviewed by Darin Adler.
+
+        Avoid triggering C++11 string literals.
+
+        * UIProcess/API/qt/tests/inspectorserver/tst_inspectorserver.cpp:
+
+2012-05-21  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
+
         Disambiguate WTF::bind and std::bind from C++11
         https://bugs.webkit.org/show_bug.cgi?id=86465
 
index 0d0bb69..3d2a95a 100644 (file)
@@ -30,8 +30,8 @@
 #include <private/qwebpreferences_p.h>
 
 #define INSPECTOR_SERVER_PORT "23654"
-static const QUrl s_inspectorServerHttpBaseUrl("http://localhost:"INSPECTOR_SERVER_PORT);
-static const QUrl s_inspectorServerWebSocketBaseUrl("ws://localhost:"INSPECTOR_SERVER_PORT);
+static const QUrl s_inspectorServerHttpBaseUrl("http://localhost:" INSPECTOR_SERVER_PORT);
+static const QUrl s_inspectorServerWebSocketBaseUrl("ws://localhost:" INSPECTOR_SERVER_PORT);
 
 class tst_InspectorServer : public QObject {
     Q_OBJECT