| Index: core/src/fxge/win32/fx_win32_dwrite.cpp
|
| diff --git a/core/src/fxge/win32/fx_win32_dwrite.cpp b/core/src/fxge/win32/fx_win32_dwrite.cpp
|
| index 0d533436b5cbc45b3cf8b45397b5f875ad9e7bcb..6008b946a003a17c598d593e5343c9e03ca73baf 100644
|
| --- a/core/src/fxge/win32/fx_win32_dwrite.cpp
|
| +++ b/core/src/fxge/win32/fx_win32_dwrite.cpp
|
| @@ -18,14 +18,14 @@ typedef HRESULT(__stdcall* FuncType_DWriteCreateFactory)(
|
| __out IUnknown**);
|
| template <typename InterfaceType>
|
| inline void SafeRelease(InterfaceType** currentObject) {
|
| - if (*currentObject != NULL) {
|
| + if (*currentObject) {
|
| (*currentObject)->Release();
|
| *currentObject = NULL;
|
| }
|
| }
|
| template <typename InterfaceType>
|
| inline InterfaceType* SafeAcquire(InterfaceType* newObject) {
|
| - if (newObject != NULL) {
|
| + if (newObject) {
|
| newObject->AddRef();
|
| }
|
| return newObject;
|
|
|