dynamic cast (--> christian couder)

Falk Brettschneider gigafalk at yahoo.com
Tue Mar 13 07:29:59 UTC 2001


Hi Christian + other developers,

Christian, thanks a lot for your commit. :-)

Just a little hint:

void CKDevelop::slotBookmarksClear(){
...
QList<int> allDocs = m_docViewManager->docs(DocViewMan::Header |
DocViewMan::Source);

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 //This makes sure the KWriteDocs are returned, only

...


KWriteDoc* pDoc = dynamic_cast<KWriteDoc*>
(m_docViewManager->docPointer( curDocId));
if(pDoc)
  pDoc->clearBookmarks();
}
^^^^^^^^^^^^^
That's why you can avoid the dynamic cast check. You can cast to
KWriteDoc, directly.

Ciao,
F at lk



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop-devel mailing list