[Uml-devel] branches/work/isi-umbrello/umbrello/umbrello

David Faure faure at kde.org
Fri Feb 23 15:19:33 UTC 2007


On Friday 23 February 2007, Caroline Bourdeu d'Aguerre wrote:
> +        dynamic_cast<CombinedFragmentWidget*>(targetWidget)->setCombinedFragmentType(type);

If targetWidget is always going to be a CombinedFragmentWidget*, why not take a CombinedFragmentWidget as argument?
This would be safter than the above (which will crash if the wrong type of widget is passed...)

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the umbrello-devel mailing list