[Qt-interest] checking the return value of connect

Giuseppe D'Angelo dangelog at gmail.com
Fri Jul 8 17:47:46 CEST 2011


On Fri, Jul 8, 2011 at 5:32 PM, Atlant Schmidt
<aschmidt at dekaresearch.com> wrote:
> Mandeep:
>
>  If connect() fails, you might want to ASSERT(); we do.
>  So ASSERT( connect( ... ) );

QT_FATAL_WARNINGS=1 is a better idea. Never wrap expressions with side
effects inside ASSERT-like macros.
-- 
Giuseppe D'Angelo



More information about the Qt-interest-old mailing list