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

Unified Diff: Source/wtf/text/AtomicString.cpp

Issue 18228003: Remove AtomicStringImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/wtf/text/AtomicString.cpp
diff --git a/Source/wtf/text/AtomicString.cpp b/Source/wtf/text/AtomicString.cpp
index c29a0f40199d15f416a542c37045f4c47d87799f..1cef7d88ba349799c1746c3191ca664ab1252acf 100644
--- a/Source/wtf/text/AtomicString.cpp
+++ b/Source/wtf/text/AtomicString.cpp
@@ -397,13 +397,13 @@ static inline HashSet<StringImpl*>::iterator findString(const StringImpl* string
return stringTable().find<HashAndCharactersTranslator<CharacterType> >(buffer);
}
-AtomicStringImpl* AtomicString::find(const StringImpl* stringImpl)
+StringImpl* AtomicString::find(const StringImpl* stringImpl)
{
ASSERT(stringImpl);
ASSERT(stringImpl->existingHash());
if (!stringImpl->length())
- return static_cast<AtomicStringImpl*>(StringImpl::empty());
+ return StringImpl::empty();
HashSet<StringImpl*>::iterator iterator;
if (stringImpl->is8Bit())
@@ -412,7 +412,7 @@ AtomicStringImpl* AtomicString::find(const StringImpl* stringImpl)
iterator = findString<UChar>(stringImpl);
if (iterator == stringTable().end())
return 0;
- return static_cast<AtomicStringImpl*>(*iterator);
+ return *iterator;
}
void AtomicString::remove(StringImpl* r)

Powered by Google App Engine
This is Rietveld 408576698