Closed Bug 330159 Opened 18 years ago Closed 18 years ago

Wrong code sample in XPIDL Author's Guide

Categories

(www.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mcsmurf, Unassigned)

References

()

Details

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
Closed: 18 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
Product: mozilla.org → Websites
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.