Title: [248804] trunk/Source/WebKit
- Revision
- 248804
- Author
- cdu...@apple.com
- Date
- 2019-08-16 17:04:00 -0700 (Fri, 16 Aug 2019)
Log Message
LocalStorageDatabase should use inline initialization for its data members
https://bugs.webkit.org/show_bug.cgi?id=200828
Reviewed by John Wilander.
* NetworkProcess/WebStorage/LocalStorageDatabase.cpp:
(WebKit::LocalStorageDatabase::LocalStorageDatabase):
* NetworkProcess/WebStorage/LocalStorageDatabase.h:
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (248803 => 248804)
--- trunk/Source/WebKit/ChangeLog 2019-08-16 23:51:21 UTC (rev 248803)
+++ trunk/Source/WebKit/ChangeLog 2019-08-17 00:04:00 UTC (rev 248804)
@@ -1,3 +1,14 @@
+2019-08-16 Chris Dumez <cdu...@apple.com>
+
+ LocalStorageDatabase should use inline initialization for its data members
+ https://bugs.webkit.org/show_bug.cgi?id=200828
+
+ Reviewed by John Wilander.
+
+ * NetworkProcess/WebStorage/LocalStorageDatabase.cpp:
+ (WebKit::LocalStorageDatabase::LocalStorageDatabase):
+ * NetworkProcess/WebStorage/LocalStorageDatabase.h:
+
2019-08-16 Kate Cheney <katherine_che...@apple.com>
Functions with no parameters in WebKit/Shared/API/c and WebKit/UIProcess/API/C are
Modified: trunk/Source/WebKit/NetworkProcess/WebStorage/LocalStorageDatabase.cpp (248803 => 248804)
--- trunk/Source/WebKit/NetworkProcess/WebStorage/LocalStorageDatabase.cpp 2019-08-16 23:51:21 UTC (rev 248803)
+++ trunk/Source/WebKit/NetworkProcess/WebStorage/LocalStorageDatabase.cpp 2019-08-17 00:04:00 UTC (rev 248804)
@@ -55,11 +55,6 @@
, m_tracker(WTFMove(tracker))
, m_securityOrigin(securityOrigin)
, m_databasePath(m_tracker->databasePath(m_securityOrigin))
- , m_failedToOpenDatabase(false)
- , m_didImportItems(false)
- , m_isClosed(false)
- , m_didScheduleDatabaseUpdate(false)
- , m_shouldClearItems(false)
{
ASSERT(!RunLoop::isMain());
}
Modified: trunk/Source/WebKit/NetworkProcess/WebStorage/LocalStorageDatabase.h (248803 => 248804)
--- trunk/Source/WebKit/NetworkProcess/WebStorage/LocalStorageDatabase.h 2019-08-16 23:51:21 UTC (rev 248803)
+++ trunk/Source/WebKit/NetworkProcess/WebStorage/LocalStorageDatabase.h 2019-08-17 00:04:00 UTC (rev 248804)
@@ -84,12 +84,12 @@
String m_databasePath;
WebCore::SQLiteDatabase m_database;
- bool m_failedToOpenDatabase;
- bool m_didImportItems;
- bool m_isClosed;
+ bool m_failedToOpenDatabase { false };
+ bool m_didImportItems { false };
+ bool m_isClosed { false };
- bool m_didScheduleDatabaseUpdate;
- bool m_shouldClearItems;
+ bool m_didScheduleDatabaseUpdate { false };
+ bool m_shouldClearItems { false };
HashMap<String, String> m_changedItems;
std::unique_ptr<WebCore::SuddenTerminationDisabler> m_disableSuddenTerminationWhileWritingToLocalStorage;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes