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

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

Issue 19804005: Remove AtomicStringImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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
« no previous file with comments | « Source/wtf/text/AtomicString.h ('k') | Source/wtf/text/AtomicStringImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/AtomicString.cpp
diff --git a/Source/wtf/text/AtomicString.cpp b/Source/wtf/text/AtomicString.cpp
index 685016e3b461b7060c35cc33aabea2306a9bda24..a949c00ed07667172c2b162d3b80bae3294fb40c 100644
--- a/Source/wtf/text/AtomicString.cpp
+++ b/Source/wtf/text/AtomicString.cpp
@@ -404,13 +404,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())
@@ -419,7 +419,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)
« no previous file with comments | « Source/wtf/text/AtomicString.h ('k') | Source/wtf/text/AtomicStringImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698