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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImage.cpp

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/platform/graphics/BitmapImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
index 1382da4b2248d87cb4a894fc359f86394e487e0d..e786161060a0520e0ae10e4b40c4c1dc2d0a4d37 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.cpp
@@ -56,7 +56,7 @@ PassRefPtr<BitmapImage> BitmapImage::CreateWithOrientationForTesting(
result->frames_[0].orientation_ = orientation;
if (orientation.UsesWidthAsHeight())
result->size_respecting_orientation_ = result->size_.TransposedSize();
- return result.Release();
+ return result;
}
BitmapImage::BitmapImage(ImageObserver* observer, bool is_multipart)

Powered by Google App Engine
This is Rietveld 408576698