Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: third_party/WebKit/Source/wtf/text/AtomicStringTable.cpp

Issue 2703833002: Migrate WTF::HashSet::remove() to ::erase() [part 2] (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/HashSet.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "wtf/text/AtomicStringTable.h" 5 #include "wtf/text/AtomicStringTable.h"
6 6
7 #include "wtf/text/StringHash.h" 7 #include "wtf/text/StringHash.h"
8 #include "wtf/text/UTF8.h" 8 #include "wtf/text/UTF8.h"
9 9
10 namespace WTF { 10 namespace WTF {
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 return nullptr; 208 return nullptr;
209 209
210 return addToStringTable<HashAndUTF8Characters, 210 return addToStringTable<HashAndUTF8Characters,
211 HashAndUTF8CharactersTranslator>(buffer); 211 HashAndUTF8CharactersTranslator>(buffer);
212 } 212 }
213 213
214 void AtomicStringTable::remove(StringImpl* string) { 214 void AtomicStringTable::remove(StringImpl* string) {
215 DCHECK(string->isAtomic()); 215 DCHECK(string->isAtomic());
216 auto iterator = m_table.find(string); 216 auto iterator = m_table.find(string);
217 RELEASE_ASSERT(iterator != m_table.end()); 217 RELEASE_ASSERT(iterator != m_table.end());
218 m_table.remove(iterator); 218 m_table.erase(iterator);
219 } 219 }
220 220
221 } // namespace WTF 221 } // namespace WTF
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/HashSet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698