[patch] kio remaining time

David Faure faure at kde.org
Sun Jan 30 19:34:58 GMT 2005

On Sunday 30 January 2005 20:26, Martin Koller wrote:
> Question to your code:
> Why do you use "const QTime" etc. for the local vars ?
> Does this really make sense ?

Marc Mutz convinced me to start doing that; it's a small safety against modifying
the variable further down by mistake (occasionally it helped me notice a bug at
compile time). It can also lead to slightly faster code with the famous 
QValueList::begin() issue (see "common mistakes" on developer.kde.org/documentation/other,
which says - but not clearly enough imho - that if the container is const then all is well).

David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).

More information about the kde-core-devel mailing list