Confirmed users
381
edits
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
## Select one with the least descendants | ## Select one with the least descendants | ||
#Collapse the XPCom interface nsIClass class and the child nsClass that implements it | #Collapse the XPCom interface nsIClass class and the child nsClass that implements it | ||
## | ##Not all member variables are defined in public headers, find out what member variables are declared in nsClass that are not defined in public headers and can not use a forward declaration. | ||
##'''Adds overhead:''' Rewrite them to form foo var to nsAutoPtr<foo> var. And add initializers for them to the constructor | ##'''Adds overhead:''' Rewrite them to form foo var to nsAutoPtr<foo> var. And add initializers for them to the constructor | ||
##'''Adds overhead:''' Update code that uses var. Eg var.member becomes var->member, var passed in an argument by value/const reference becomes *var. | ##'''Adds overhead:''' Update code that uses var. Eg var.member becomes var->member, var passed in an argument by value/const reference becomes *var. | ||