DRAFT document on coding conventions in kde libraries

John Tapsell johnflux at gmail.com
Sun Mar 5 19:11:28 GMT 2006


> - getters should all be const, unless there's a strong reason against
> that.

Perhaps it's worth mentioning that if it's not const because you cache
the results in a member variable, then consider making it const anyway
and make the caching class member mutable.




More information about the kde-core-devel mailing list