[haiku-development] BObjectList

  • From: julun <host.haiku@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 25 Mar 2009 18:27:00 +0100

Hi,

while i had a short look at Paladins source, i noticed that it is using something like:

BObjectList<BString> list;
list.AddItem(new BString("foo"));

Now i wonder what's the purpose behind this list, especially since it's a template based list where i still have to pass an pointer to an object instead of the object itself. This seems rather useless, i would have expected to be able to do it like this:

BObjectList<BString> list;
list.AddItem(BString("foo"));


Maybe I missed something, or is the name just misleading.

Regards,
Karsten

Other related posts: