To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115510





------- Additional comments from m...@openoffice.org Wed Dec 15 08:32:52 +0000 
2010 -------
To make the code more readable, I implemented a template called SwIterator that
implements type safe iterators for objects derived from SwClient. This allows to
remove all type casts in the code.

Example:

SwClientIter aIter( *pTxtNode );
for( SwFrm* pFrm = (SwFrm*)aIter.First( TYPE(SwFrm) );
     pFrm;
     pFrm = (SwFrm*)aIter.Next() )
{
    SwTxtFrm* pTxtFrm( dynamic_cast<SwTxtFrm*>(pFrm) );
    if ( pTxtFrm )
    {

now is simply

SwIterator<SwTxtFrm,SwTxtNode> aIter( *pTxtNode );
for( SwTxtFrm* pTxtFrm = aIter.First(); pTxtFrm; pTxtFrm = aIter.Next() )
{
    

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@sw.openoffice.org
For additional commands, e-mail: issues-h...@sw.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to