From 47163f64335efc011ecd1b28e42185ed55848307 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 26 Jan 2020 09:47:29 -0800 Subject: [PATCH] Simplify boolean expression, 'A != false' is just 'A' And correct associated assert message --- src/common/dcsvg.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/dcsvg.cpp b/src/common/dcsvg.cpp index 29aae36ce9..6fa8108632 100644 --- a/src/common/dcsvg.cpp +++ b/src/common/dcsvg.cpp @@ -1276,9 +1276,9 @@ bool wxSVGFileDCImpl::DoBlit(wxCoord xdest, wxCoord ydest, wxASSERT_MSG(false, wxS("wxSVGFileDC::DoBlit Call requested nonCopy mode; this is not possible")); return false; } - if (useMask != false) + if (useMask) { - wxASSERT_MSG(false, wxS("wxSVGFileDC::DoBlit Call requested false mask; this is not possible")); + wxASSERT_MSG(false, "wxSVGFileDC::DoBlit Call requested mask; this is not possible"); return false; } wxBitmap myBitmap(width, height);