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

Unified Diff: third_party/WebKit/Source/core/style/StyleNonInheritedVariables.h

Issue 2437883002: Made PassRefPtr move only and replaced new copies with moves. (Closed)
Patch Set: Removed stale comment Created 4 years, 2 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: third_party/WebKit/Source/core/style/StyleNonInheritedVariables.h
diff --git a/third_party/WebKit/Source/core/style/StyleNonInheritedVariables.h b/third_party/WebKit/Source/core/style/StyleNonInheritedVariables.h
index 89ead250c08ce26fd4aba477c633ca380cdc6ddf..81526d7aa89352a8215027d269610d15764cbee6 100644
--- a/third_party/WebKit/Source/core/style/StyleNonInheritedVariables.h
+++ b/third_party/WebKit/Source/core/style/StyleNonInheritedVariables.h
@@ -30,7 +30,7 @@ class StyleNonInheritedVariables {
void setVariable(const AtomicString& name,
PassRefPtr<CSSVariableData> value) {
- m_data.set(name, value);
+ m_data.set(name, std::move(value));
}
CSSVariableData* getVariable(const AtomicString& name) const;
void removeVariable(const AtomicString&);
« no previous file with comments | « third_party/WebKit/Source/core/css/PropertyRegistry.cpp ('k') | third_party/WebKit/Source/modules/fetch/BlobBytesConsumer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698