A New Krazy Checker for Methods Returning const refs

Allen Winter winter at kde.org
Sat Apr 14 22:26:36 BST 2007


Howdy,

Based on a new Library Policy that tronical added today [1],
I will be installing a new Krazy checker for tonight's run that
complains about public methods that return const references.
The check only is run in installed headers for public classes.

tronical suggests that
 const QList<int> &someProperty() const;
should be written as:
 QList<int> someProperty() const;

As usual, please let me know about false positives.
-Allen

[1]
http://techbase.kde.org/Policies/Library_Code_Policy#Const_References




More information about the kde-core-devel mailing list