Suspicous code in kdelibs-3.5.2

R.F. Pels ruurd at tiscali.nl
Wed Apr 5 18:47:10 BST 2006


On Wednesday 5 April 2006 19.12, Michael Brade wrote:

> I don't quite understand... what's wrong with this:
>
>   bool delayedMimeTypes = true;
>   for ( KDirLister *kdl = listers->first(); kdl; kdl = listers->next() )

My pet peeve: kdl != 0...

>     delayedMimeTypes &= kdl->d->delayedMimeTypes;
>
> kdl->d->delayedMimeTypes is a bool as well. Any ideas?

I think it's because you're using the bitwise operator, not the logical 
operator &&= ...

-- 
R.F. Pels,  3e Rompert 118,  5233 AL  's-Hertogenbosch,  The Netherlands
+31736414590        ruurd at tiscali.nl       http://home.tiscali.nl/~ruurd





More information about the kde-core-devel mailing list