Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 14261
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: Sun Jun 08 09:57:12 CEST 2025

Total time taken to generate the page: 0.04819 seconds