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

Unified Diff: Source/core/dom/DOMSettableTokenList.h

Issue 130403008: Update DOMTokenList::value() to return a const reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 | « no previous file | Source/core/dom/DOMTokenList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DOMSettableTokenList.h
diff --git a/Source/core/dom/DOMSettableTokenList.h b/Source/core/dom/DOMSettableTokenList.h
index dd5b93a2932132fd5b721e84a2947261645cc48e..2a59e85b8197b562e941aa7bc0716fbef7534ead 100644
--- a/Source/core/dom/DOMSettableTokenList.h
+++ b/Source/core/dom/DOMSettableTokenList.h
@@ -52,7 +52,7 @@ public:
virtual void add(const Vector<String>&, ExceptionState&) OVERRIDE;
virtual void remove(const Vector<String>&, ExceptionState&) OVERRIDE;
- virtual AtomicString value() const OVERRIDE { return m_value; }
+ virtual const AtomicString& value() const OVERRIDE { return m_value; }
virtual void setValue(const AtomicString&) OVERRIDE;
const SpaceSplitString& tokens() const { return m_tokens; }
« no previous file with comments | « no previous file | Source/core/dom/DOMTokenList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698