[Kde-imaging] Re: Operator== for ImageCollection

Renchi Raju renchi at pooh.tam.uiuc.edu
Sat Jul 17 11:05:27 CEST 2004



On Sat, 17 Jul 2004, Jesper K. Pedersen wrote:

> On Saturday 17 July 2004 10:29, Aurelien Gateau wrote:
> | Hi!
> |
> | I'm working on ImageCollectionSelector, I implemented the behaviour Jesper
> | expected (if currentAlbum is not in allAlbums, select all image
> | collections). To do so I need to check if an image collection is equal to
> | another. Right now I implemented it according to the attached patch. Does
> | it look ok?
> |
> | If it sounds good I'll commit this and my work on ImageCollectionSelector
> | today.
> This assumes that the same image collection is returned twice as the same
> pointer, doesn't it? At least I simply create a new ImageCollectionShared
> each time, so it would not work out of the box for me - of course I would
> never return true anyway, so you should not worry about me, but I'm
> considering what every one else does (including new host apps in the future)

our implementation works the same way as jesper mentioned. so it will not
work for us either. i would recommend having two different functions
operator==() and equals(), one which does pointer comparison and the other
compares the urls of included items.

renchi


More information about the Kde-imaging mailing list