From 8b70724c6a59b833e502b89f233bfd6ba50b45b2 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 5 Jul 2026 16:36:33 +0200 Subject: [PATCH] Replace wxASSERT_MSG with subsequent test with wxCHECK_MSG This is a more idiomatic way of checking for precondition. --- src/common/sckipc.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/sckipc.cpp b/src/common/sckipc.cpp index 4eb21b9ad7..6d3aecd454 100644 --- a/src/common/sckipc.cpp +++ b/src/common/sckipc.cpp @@ -560,9 +560,7 @@ bool wxIPCMessageBase::ReadSizeAndData() if (!Read32(m_size)) return false; - wxASSERT_MSG( m_handler, "No handler for read allocation"); - if ( !m_handler ) - return false; + wxCHECK_MSG( m_handler, false, "No handler for read allocation"); m_read_data = m_handler->GetBufPtr(m_size);