[patch] kio remaining time

Harri Porten porten at froglogic.com
Sun Jan 30 19:55:11 GMT 2005


On Sun, 30 Jan 2005, Martin Koller wrote:

> >   const QTime time(hours, mins, secs);
> >   const QString timeStr( KGlobal::locale()->formatTime(time, true /*with
> > seconds*/, true /*duration*/) ); if ( days > 0 )
> >     return i18n("1 day %1", "%n days %1", days).arg(timeStr);
> >   else
> >     return timeStr;
[...]
> Question to your code:
> Why do you use "const QTime" etc. for the local vars ?
> Does this really make sense ?

One could argue: if it doesn't make sense it *never* makes sense. One
could write complete C++ programs without ever using this keyword :)

Harri.





More information about the kde-core-devel mailing list