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

Unified Diff: third_party/WebKit/Source/core/animation/Keyframe.h

Issue 2957513002: Removed calls to RefPtr::Release in return statements with auto move. (Closed)
Patch Set: rebased Created 3 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: third_party/WebKit/Source/core/animation/Keyframe.h
diff --git a/third_party/WebKit/Source/core/animation/Keyframe.h b/third_party/WebKit/Source/core/animation/Keyframe.h
index 4c8e8528a833f8f52f97db44c6132e46c21e40f2..b39b41d4f013662c3f426f5cf4a38f2fda52ba5c 100644
--- a/third_party/WebKit/Source/core/animation/Keyframe.h
+++ b/third_party/WebKit/Source/core/animation/Keyframe.h
@@ -56,7 +56,7 @@ class CORE_EXPORT Keyframe : public RefCounted<Keyframe> {
PassRefPtr<Keyframe> CloneWithOffset(double offset) const {
RefPtr<Keyframe> the_clone = Clone();
the_clone->SetOffset(offset);
- return the_clone.Release();
+ return the_clone;
}
virtual bool IsAnimatableValueKeyframe() const { return false; }

Powered by Google App Engine
This is Rietveld 408576698