map::find() works just fine on all platforms.

This commit is contained in:
beard%netscape.com 2000-05-09 05:55:30 +00:00
parent a2f5fc24f7
commit 7a09fcc4cd
2 changed files with 0 additions and 16 deletions

View File

@ -156,17 +156,9 @@ namespace JSTypes {
const JSValue& getProperty(const String& name)
{
#ifdef XP_MAC
JSProperties::const_iterator i = mProperties.find(name);
if (i != mProperties.end())
return i->second;
#else
// XXX should use map.find() to do this efficiently, but
// unfortunately, find() returns an iterator that is different
// on different STL implementations.
if (mProperties.count(name))
return mProperties[name];
#endif
if (mPrototype)
return mPrototype->getProperty(name);
return kUndefinedValue;

View File

@ -156,17 +156,9 @@ namespace JSTypes {
const JSValue& getProperty(const String& name)
{
#ifdef XP_MAC
JSProperties::const_iterator i = mProperties.find(name);
if (i != mProperties.end())
return i->second;
#else
// XXX should use map.find() to do this efficiently, but
// unfortunately, find() returns an iterator that is different
// on different STL implementations.
if (mProperties.count(name))
return mProperties[name];
#endif
if (mPrototype)
return mPrototype->getProperty(name);
return kUndefinedValue;