From a5b810a701d3dd4b9b717d5ba036aef6d7f34445 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 3 Apr 2019 10:39:00 +1100 Subject: Help static analyzers with assert. --- win32/ScintillaWin.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'win32') diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index f00454517..b0869a8d7 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -3384,6 +3384,8 @@ LRESULT PASCAL ScintillaWin::CTWndProc( ::EndPaint(hWnd, &ps); return 0; } + // If above SUCCEEDED, then pCTRenderTarget not nullptr + assert(pCTRenderTarget); surfaceWindow->Init(pCTRenderTarget, hWnd); pCTRenderTarget->BeginDraw(); #endif -- cgit v1.2.3