mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-17 08:53:06 +08:00
Replace wxASSERT_MSG with subsequent test with wxCHECK_MSG
This is a more idiomatic way of checking for precondition.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user