Closed Bug 920112 Opened 11 years ago Closed 11 years ago

mozHunspellDirProvider.h:63:5: error: unknown type name 'nsCOMPtr'

Categories

(Core :: Spelling checker, defect)

x86_64
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla27

People

(Reporter: jbeich, Assigned: jbeich)

References

Details

(Keywords: regression)

Attachments

(1 file)

In file included from extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:36:
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.h:63:5: error:
      unknown type name 'nsCOMPtr'
    nsCOMPtr<nsISimpleEnumerator> mBase;
    ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.h:63:13: error:
      expected member name or ';' after declaration specifiers
    nsCOMPtr<nsISimpleEnumerator> mBase;
    ~~~~~~~~^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.h:64:5: error:
      unknown type name 'nsCOMPtr'
    nsCOMPtr<nsIFile>             mNext;
    ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.h:64:13: error:
      expected member name or ';' after declaration specifiers
    nsCOMPtr<nsIFile>             mNext;
    ~~~~~~~~^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:62:3: error:
      use of undeclared identifier 'nsCOMPtr'
  nsCOMPtr<nsIProperties> dirSvc =
  ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:62:12: error:
      use of undeclared identifier 'nsIProperties'
  nsCOMPtr<nsIProperties> dirSvc =
           ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:62:27: error:
      use of undeclared identifier 'dirSvc'
  nsCOMPtr<nsIProperties> dirSvc =
                          ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:63:5: error:
      use of undeclared identifier 'do_GetService'
    do_GetService(NS_DIRECTORY_SERVICE_CONTRACTID);
    ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:64:8: error:
      use of undeclared identifier 'dirSvc'
  if (!dirSvc)
       ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:67:3: error:
      use of undeclared identifier 'nsCOMPtr'
  nsCOMPtr<nsISimpleEnumerator> list;
  ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:67:12: error:
      'nsISimpleEnumerator' does not refer to a value
  nsCOMPtr<nsISimpleEnumerator> list;
           ^
../../../../dist/include/nsICategoryManager.h:17:7: note: declared here
class nsISimpleEnumerator; /* forward declaration */
      ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:67:33: error:
      use of undeclared identifier 'list'
  nsCOMPtr<nsISimpleEnumerator> list;
                                ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:68:17: error:
      use of undeclared identifier 'dirSvc'
  nsresult rv = dirSvc->Get(XRE_EXTENSIONS_DIR_LIST,
                ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:70:23: error:
      use of undeclared identifier 'list'
                            getter_AddRefs(list));
                                           ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:74:3: error:
      use of undeclared identifier 'nsCOMPtr'
  nsCOMPtr<nsISimpleEnumerator> e = new AppendingEnumerator(list);
  ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:74:12: error:
      'nsISimpleEnumerator' does not refer to a value
  nsCOMPtr<nsISimpleEnumerator> e = new AppendingEnumerator(list);
           ^
../../../../dist/include/nsICategoryManager.h:17:7: note: declared here
class nsISimpleEnumerator; /* forward declaration */
      ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:74:33: error:
      use of undeclared identifier 'e'
  nsCOMPtr<nsISimpleEnumerator> e = new AppendingEnumerator(list);
                                ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:74:61: error:
      use of undeclared identifier 'list'
  nsCOMPtr<nsISimpleEnumerator> e = new AppendingEnumerator(list);
                                                            ^
extensions/spellcheck/hunspell/src/mozHunspellDirProvider.cpp:75:8: error:
      use of undeclared identifier 'e'
  if (!e)
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
gmake[3]: *** [mozHunspellDirProvider.o] Error 1
Keywords: regression
Attached patch include fixSplinter Review
Attachment #809964 - Flags: review?(ehsan)
Thanks for the fix, Jan.  It fails on my Linux system.  I can't see how this builds anywhere.  Perhaps some conditional inclusion somewhere, but I haven't found it.
OS: FreeBSD → All
Attachment #809964 - Flags: review?(ehsan) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/ff6fed474ee2
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: