~swem/totem/assignment

« back to all changes in this revision

Viewing changes to browser-plugin/totemNPClass.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:
29
29
                                      uint32_t aMethodCount,
30
30
                                      const char *aDefaultMethodName) :
31
31
  mPropertyNameIdentifiers (GetIdentifiersForNames (aPropertNames, aPropertyCount)),
 
32
  mPropertyNamesCount (aPropertyCount),
32
33
  mMethodNameIdentifiers (GetIdentifiersForNames (aMethodNames, aMethodCount)),
 
34
  mMethodNamesCount (aMethodCount),
33
35
  mDefaultMethodIndex (aDefaultMethodName ? GetMethodIndex (NPN_GetStringIdentifier (aDefaultMethodName)) : -1)
34
36
{
35
37
  structVersion  = NP_CLASS_STRUCT_VERSION_ENUM;
81
83
  if (!mPropertyNameIdentifiers)
82
84
    return -1;
83
85
 
84
 
  for (int i = 0; mPropertyNameIdentifiers[i]; ++i) {
 
86
  for (int i = 0; i < mPropertyNamesCount; ++i) {
85
87
    if (aName == mPropertyNameIdentifiers[i])
86
88
      return i;
87
89
  }
95
97
  if (!mMethodNameIdentifiers)
96
98
    return -1;
97
99
 
98
 
  for (int i = 0; mMethodNameIdentifiers[i]; ++i) {
 
100
  for (int i = 0; i < mMethodNamesCount; ++i) {
99
101
    if (aName == mMethodNameIdentifiers[i])
100
102
      return i;
101
103
  }