~swem/totem/assignment

« back to all changes in this revision

Viewing changes to browser-plugin/totemNPObject.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2010-01-27 09:40:18 UTC
  • mfrom: (1.4.2 upstream) (5.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20100127094018-q6rzt7va0y8ketwt
Tags: 2.29.4-1
* New upstream development release:
  + debian/patches/90_autotools.patch:
    - Refreshed for the new version.
  + debian/control.in:
    - Update build dependencies and dependencies.
    - Drop tracker plugin, it needs tracker 0.7.
  + debian/totem-mozilla.links:
    - Drop the complex plugin, it doesn't exist anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
416
416
  if (!IsValid ())
417
417
    return false;
418
418
 
419
 
  NOTE (g_print ("totemNPObject::HasMethod [%p] %s\n", (void*) this, NPN_UTF8FromIdentifier (aName)));
420
 
  if (GetClass()->GetMethodIndex (aName) >= 0)
 
419
  int methodIndex = GetClass()->GetMethodIndex (aName);
 
420
  NOTE (g_print ("totemNPObject::HasMethod [%p] %s => %s\n", (void*) this, NPN_UTF8FromIdentifier (aName), methodIndex >= 0 ? "yes" : "no"));
 
421
  if (methodIndex >= 0)
421
422
    return true;
422
423
 
423
424
  if (aName == NPN_GetStringIdentifier ("__noSuchMethod__"))
478
479
  if (!IsValid ())
479
480
    return false;
480
481
 
481
 
  NOTE (g_print ("totemNPObject::HasProperty [%p] %s\n", (void*) this, NPN_UTF8FromIdentifier (aName)));
482
 
  if (GetClass()->GetPropertyIndex (aName) >= 0)
 
482
  int propertyIndex = GetClass()->GetPropertyIndex (aName);
 
483
  NOTE (g_print ("totemNPObject::HasProperty [%p] %s => %s\n", (void*) this, NPN_UTF8FromIdentifier (aName), propertyIndex >= 0 ? "yes" : "no"));
 
484
  if (propertyIndex >= 0)
483
485
    return true;
484
486
 
485
487
  return false;