Replace wxASSERT_MSG with subsequent test with wxCHECK_MSG

This is a more idiomatic way of checking for precondition.
This commit is contained in:
Vadim Zeitlin
2026-08-06 21:59:34 +02:00
parent 33321e42f8
commit 8b70724c6a
+1 -3
View File
@@ -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);