Index: Source/core/fetch/ImageResource.cpp |
diff --git a/Source/core/fetch/ImageResource.cpp b/Source/core/fetch/ImageResource.cpp |
index be73b8411561c903ef2be9f6350a61a1f6188fc0..9b544c29e1e56c6def5d3cb3e17fba987207bee2 100644 |
--- a/Source/core/fetch/ImageResource.cpp |
+++ b/Source/core/fetch/ImageResource.cpp |
@@ -44,7 +44,7 @@ namespace WebCore { |
ImageResource::ImageResource(const ResourceRequest& resourceRequest) |
: Resource(resourceRequest, Image) |
, m_devicePixelRatioHeaderValue(1.0) |
- , m_image(0) |
+ , m_image(nullptr) |
, m_loadingMultipartContent(false) |
, m_hasDevicePixelRatioHeaderValue(false) |
{ |
@@ -128,7 +128,7 @@ bool ImageResource::isSafeToUnlock() const |
void ImageResource::destroyDecodedDataIfPossible() |
{ |
if (isSafeToUnlock() && !hasClients() && !isLoading()) { |
- m_image = 0; |
+ m_image = nullptr; |
setDecodedSize(0); |
} else if (m_image && !errorOccurred()) { |
m_image->destroyDecodedData(true); |