From 9fb204701728f97ad196e6af2bf8f0455412661e Mon Sep 17 00:00:00 2001 From: "dp%netscape.com" Date: Tue, 16 Nov 1999 07:14:49 +0000 Subject: [PATCH] Changing comments for readability. git-svn-id: svn://10.0.0.236/trunk@53642 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/sample/nsSampleModule.cpp | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/mozilla/xpcom/sample/nsSampleModule.cpp b/mozilla/xpcom/sample/nsSampleModule.cpp index 983375e30b6..13fb3dd6c24 100644 --- a/mozilla/xpcom/sample/nsSampleModule.cpp +++ b/mozilla/xpcom/sample/nsSampleModule.cpp @@ -25,14 +25,21 @@ #include "nsSample.h" //////////////////////////////////////////////////////////////////////// -// Define the contructor function for the object nsSample +// With the below sample, you can define an implementation glue +// that talks with xpcom for creation of component nsSampleImpl +// that implement the interface nsISample. This can be extended for +// any number of components. +//////////////////////////////////////////////////////////////////////// + +//////////////////////////////////////////////////////////////////////// +// Define the contructor function for the object nsSampleImpl // -// What this does is defines a functions nsSampleConstructor which we -// will specific in the nsModuleComponentInfo table. This functions will -// be used the generic factory to create an instance of nsSample. +// What this does is defines a function nsSampleImplConstructor which we +// will specific in the nsModuleComponentInfo table. This function will +// be used by the generic factory to create an instance of nsSampleImpl. // -// NOTE: This creates an instance of nsSample by using the default -// constructor. +// NOTE: This creates an instance of nsSampleImpl by using the default +// constructor nsSampleImpl::nsSampleImpl() // NS_GENERIC_FACTORY_CONSTRUCTOR(nsSampleImpl) @@ -48,5 +55,6 @@ static nsModuleComponentInfo components[] = //////////////////////////////////////////////////////////////////////// // Implement the NSGetModule() exported function for your module +// and the entire implementation of the module object. // NS_IMPL_NSGETMODULE("nsSampleModule", components)