Hey Antonio,

2011/4/18 Antonio Mancina <[email protected]>:
> Hi all,
>
> if I get it correctly, there's a bug in WDialog.C CTOR, not
> initializing the result_ member variable, neither in the initialization
> list, nor in the CTOR body.

We could initialize it, but you are not supposed to read the result()
until the dialog has been closed. The fact that the result() is stored
in the dialog is in fact merely a convenience, and usually you should
not need it:

- either use exec(), which returns the result
- or use show() and listen to the finished() signal, which passes the
result as a parameter

By not initializing it, you will at least get a valgrind error if you
are trying to read it in another situation.

Regards,
koen

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to