If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Wrong code sample in XPIDL Author's Guide

RESOLVED FIXED

Status

www.mozilla.org
General
RESOLVED FIXED
12 years ago
5 years ago

People

(Reporter: mcsmurf, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

12 years ago
I'm quite sure that in the second code example at the given URL the function name in either the XPIDL code or in the C++ header is wrong. For the XPIDL code it's "void twiddleStuff();" but in the C++ header it's "NS_IMETHOD TwiddleSil(void) = 0;". The comment above that line in the C++ header says "/* void twiddleSil (); */" so i guess the XPIDL code should be fixed here via
-   void twiddleStuff();
+   void twiddleSil();
Checking in mozilla-org/html/scriptable/xpidl/idl-authors-guide/rules.html;
/cvsroot/mozilla-org/html/scriptable/xpidl/idl-authors-guide/rules.html,v  <--  rules.html
new revision: 1.8; previous revision: 1.7
done

You made the following changes:

Index: mozilla-org/html/scriptable/xpidl/idl-authors-guide/rules.html
===================================================================
RCS file: /cvsroot/mozilla-org/html/scriptable/xpidl/idl-authors-guide/rules.html,v
retrieving revision 1.7
diff -u -r1.7 rules.html
--- mozilla-org/html/scriptable/xpidl/idl-authors-guide/rules.html	29 May 2002 23:14:48 -0000	1.7
+++ mozilla-org/html/scriptable/xpidl/idl-authors-guide/rules.html	11 Mar 2006 14:40:40 -0000
@@ -164,7 +164,7 @@
 	      <td valign="top">
 <pre>
 interface nsISil {
-  void twiddleStuff();
+  void twiddleSil();
 };
 </pre>
 	      </td>
Status: NEW → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → FIXED
--> mozilla.org :: www.mozilla.org
Component: *.mozilla.org → www.mozilla.org
Product: Websites → mozilla.org
QA Contact: other-mozilla-org → www-mozilla-org
Version: unspecified → other
(Assignee)

Updated

12 years ago
Product: mozilla.org → Websites
(Assignee)

Updated

5 years ago
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.