U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Widgets - General questions or Mixed problems » DropList::Find() error?
Re: DropList::Find() error? [message #9678 is a reply to message #9643] Thu, 24 May 2007 23:22 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
unodgs wrote on Wed, 23 May 2007 06:17

Shouldn't DropList::Find(const Value& key) look like this:
int Find(const Value& k) const    { return list.Find(k); }

instead of
int Find(const Value& k) const    { return key.Find(k); }

Now FindKey is a copy of Find.


It's rather obsolete name. Naming there would be "FindValue" for what you suggest.

The "value" of DropList is always its key (little bit confusing if you write it down Smile, so unless there is "Value" in method name, it is about the key.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to arrange widgets
Next Topic: Linux Suse 10.2 build problem
Goto Forum:
  


Current Time: Thu Jul 23 05:56:22 GMT+2 2026

Total time taken to generate the page: 0.00464 seconds