Closed Bug 460295 Opened 16 years ago Closed 16 years ago

nsRefPtrHashtable.h belongs to sdk and includes nsAutoPtr.h which does not

Categories

(Firefox Build System :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: arno, Assigned: arno)

References

Details

Attachments

(1 file, 2 obsolete files)

Hi, nsRefPtrHashtable.h belongs in sdk/include it includes nsAutoPtr.h which does not belong in sdk/include. Therefore, you cannot use nsRefPtrHashtable.h if you only want to use sdk. Here is part of error I get when compiling: In file included from abbrbkMgr.h:9, from abbrbkMgr.cpp:1: /home/arno//work/xulrunner-sdk/sdk//include/nsRefPtrHashtable.h:44:23: error: nsAutoPtr.h: Aucun fichier ou répertoire de ce type In file included from abbrbkMgr.h:9, from abbrbkMgr.cpp:1: /home/arno//work/xulrunner-sdk/sdk//include/nsRefPtrHashtable.h:56: error: ‘nsRefPtr’ was not declared in this scope /home/arno//work/xulrunner-sdk/sdk//include/nsRefPtrHashtable.h:56: error: wrong number of template arguments (2, should be 3) /home/arno//work/xulrunner-sdk/sdk//include/nsBaseHashtable.h:46: error: provided for ‘template<class KeyClass, class DataType, class UserDataType> class nsBaseHashtable’
Attached patch patch v1 (obsolete) (deleted) — Splinter Review
modify xpcom/base/Makefile.in to add nsAutoPtr.h to sdk headers
Assignee: nobody → arenevier
Status: NEW → ASSIGNED
Attachment #343416 - Flags: review?(benjamin)
Attachment #343416 - Flags: review?(benjamin) → review-
Comment on attachment 343416 [details] [diff] [review] patch v1 If you're going to add it to SDK_HEADERS, you need to remove it from EXPORTS at the same time.
Attached patch patch v2 (removes nsAutoPtr.h from EXPORTS) (obsolete) (deleted) — Splinter Review
Attachment #343416 - Attachment is obsolete: true
Attachment #343958 - Flags: review?(benjamin)
Attachment #343958 - Flags: review?(benjamin) → review+
Attachment #343958 - Flags: superreview?(dveditz)
does the patch need super review, or is it ready for checkin ?
Attachment #343958 - Flags: superreview?(dveditz) → superreview+
Comment on attachment 343958 [details] [diff] [review] patch v2 (removes nsAutoPtr.h from EXPORTS) sr=dveditz benjamin's review was enough for this simple patch.
Keywords: checkin-needed
Version: unspecified → Trunk
Comment on attachment 343958 [details] [diff] [review] patch v2 (removes nsAutoPtr.h from EXPORTS) Sorry: { patching file xpcom/base/Makefile.in Hunk #1 FAILED at 75 1 out of 2 hunks FAILED }
Attachment #343958 - Attachment is obsolete: true
oh, xpcom/base/Makefile.in has changed since review. Here is the same patch updated to build with current trunk
Keywords: checkin-needed
Attachment #351720 - Attachment description: patch updated to build with new trunk → patch updated to build with new trunk [Checkin: Comment 8]
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite-
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
Blocks: 468835
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: