On 03/10/2018 09:53 AM, Michael Heidelbach wrote:
> Am I getting something wrong? Or is
>    "Q_ASSERT(m_writeTrans);
>    m_writeTrans->commit();"
> providing false security?

a lot of KDE code is written this way. It will end up crashing in both
debug and release, but in debug the message will be clearer. I think
this makes sense for cases where you think it is very unlikely that the
condition will not be met. I also think adding the conditional
everywhere often makes debugging harder because it prevents the crash.


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to