Index: src/utils/win/SkIStream.cpp |
diff --git a/src/utils/win/SkIStream.cpp b/src/utils/win/SkIStream.cpp |
index 74d814ccb1c4850f86376a6c61362d437796935b..6274e717a2065dd7e7e87102a355c632982ab9f8 100644 |
--- a/src/utils/win/SkIStream.cpp |
+++ b/src/utils/win/SkIStream.cpp |
@@ -113,7 +113,7 @@ SkIStream::SkIStream(SkStream* stream, bool unrefOnRelease) |
} |
SkIStream::~SkIStream() { |
- if (NULL != this->fSkStream && fUnrefOnRelease) { |
+ if (this->fSkStream && fUnrefOnRelease) { |
this->fSkStream->unref(); |
} |
} |
@@ -196,7 +196,7 @@ HRESULT STDMETHODCALLTYPE SkIStream::Seek(LARGE_INTEGER liDistanceToMove |
break; |
} |
- if (NULL != lpNewFilePointer) { |
+ if (lpNewFilePointer) { |
lpNewFilePointer->QuadPart = this->fLocation.QuadPart; |
} |
return hr; |
@@ -228,7 +228,7 @@ SkWIStream::SkWIStream(SkWStream* stream) |
{ } |
SkWIStream::~SkWIStream() { |
- if (NULL != this->fSkWStream) { |
+ if (this->fSkWStream) { |
this->fSkWStream->flush(); |
} |
} |