| 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 ab50f3cf38cab4811f2aec0723c69654640509ce..83924f23e7e1780169fdb686ef18f6acbe915663 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;
|
|
|