diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2013-09-17 11:01:33 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-19 20:50:05 +0200 |
commit | 2925efd2fcef1f8b9fd48979144877c1a5ec214b (patch) | |
tree | 5e0720412202468499c2bd41d4ec8d5952618f8a /Source/WebKit2/UIProcess/Storage/LocalStorageDatabase.cpp | |
parent | 4ff1d0e1e73e6467aeed9313afe09ec6ece4884d (diff) | |
download | qtwebkit-2925efd2fcef1f8b9fd48979144877c1a5ec214b.tar.gz |
Remove C++11 requirement in WebKit2
Removes all use of C++11 specific features in WebKit2. This consists of
template<S<T>> syntax, a few uses of auto, and a single use of std::move.
Change-Id: I1bbd356c430802caf5f7440cd0d3bb2ba49ed098
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source/WebKit2/UIProcess/Storage/LocalStorageDatabase.cpp')
-rw-r--r-- | Source/WebKit2/UIProcess/Storage/LocalStorageDatabase.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/WebKit2/UIProcess/Storage/LocalStorageDatabase.cpp b/Source/WebKit2/UIProcess/Storage/LocalStorageDatabase.cpp index 7c58578eb..4dbb9eab1 100644 --- a/Source/WebKit2/UIProcess/Storage/LocalStorageDatabase.cpp +++ b/Source/WebKit2/UIProcess/Storage/LocalStorageDatabase.cpp @@ -258,7 +258,7 @@ void LocalStorageDatabase::updateDatabase() m_changedItems.swap(changedItems); } else { for (int i = 0; i < maximumItemsToUpdate; ++i) { - auto it = m_changedItems.begin(); + HashMap<String, String>::iterator it = m_changedItems.begin(); changedItems.add(it->key, it->value); m_changedItems.remove(it); @@ -311,7 +311,9 @@ void LocalStorageDatabase::updateDatabaseWithChangedItems(const HashMap<String, SQLiteTransaction transaction(m_database); transaction.begin(); - for (auto it = changedItems.begin(), end = changedItems.end(); it != end; ++it) { + HashMap<String, String>::const_iterator it = changedItems.begin(); + const HashMap<String, String>::const_iterator end = changedItems.end(); + for (; it != end; ++it) { // A null value means that the key/value pair should be deleted. SQLiteStatement& statement = it->value.isNull() ? deleteStatement : insertStatement; |