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

Unified Diff: third_party/WebKit/Source/platform/graphics/Image.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/Image.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Image.cpp b/third_party/WebKit/Source/platform/graphics/Image.cpp
index 84b1a39884bd20cdb0433b0eaa08c8c809decdfe..a49261b3ec4ac84eaa30270d47565314755c34be 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Image.cpp
@@ -72,7 +72,7 @@ PassRefPtr<Image> Image::LoadPlatformResource(const char* name) {
RefPtr<Image> image = BitmapImage::Create();
image->SetData(resource, true);
- return image.Release();
+ return image;
}
bool Image::SupportsType(const String& type) {
@@ -341,7 +341,7 @@ void Image::DrawPattern(GraphicsContext& context,
PassRefPtr<Image> Image::ImageForDefaultFrame() {
RefPtr<Image> image(this);
- return image.Release();
+ return image;
}
PaintImage Image::PaintImageForCurrentFrame() {

Powered by Google App Engine
This is Rietveld 408576698