Bug 74803 - Should make global data const where possible; const changes for nsmodulecomponentinfo; r=dbaron

This commit is contained in:
Navin Lal 2009-07-25 03:27:08 +02:00
parent 85f2bfe920
commit 9313832a8a
8 changed files with 8 additions and 8 deletions

View File

@ -204,7 +204,7 @@ NS_IMETHODIMP className::QueryInterface( REFNSIID anIID, void **anInstancePtr )
NS_GENERIC_FACTORY_CONSTRUCTOR( nsUnknownContentTypeHandler )
// The list of components we register
static nsModuleComponentInfo info[] = {
static const nsModuleComponentInfo info[] = {
{
"nsUnknownContentTypeHandler",
NS_IHELPERAPPLAUNCHERDIALOG_IID,

View File

@ -209,7 +209,7 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsAuthSASL)
//-----------------------------------------------------------------------------
static nsModuleComponentInfo components[] = {
static const nsModuleComponentInfo components[] = {
{ "nsAuthKerbGSS",
NS_GSSAUTH_CID,
NS_AUTH_MODULE_CONTRACTID_PREFIX "kerb-gss",

View File

@ -117,7 +117,7 @@ mozInlineSpellCheckerConstructor(nsISupports *aOuter, REFNSIID aIID,
// information like the function to create an instance, contractid, and
// class name.
//
static nsModuleComponentInfo components[] = {
static const nsModuleComponentInfo components[] = {
#ifdef MOZ_MACBROWSER
{
"OSX Spell check service",

View File

@ -56,7 +56,7 @@
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSemanticUnitScanner)
static nsModuleComponentInfo components[] =
static const nsModuleComponentInfo components[] =
{
// lwbrk
{ "Line Breaker", NS_LBRK_CID,

View File

@ -127,7 +127,7 @@ nsUKProbDetectorRegistrationProc(nsIComponentManager *aCompMgr,
}
static nsModuleComponentInfo components[] =
static const nsModuleComponentInfo components[] =
{
{ "Meta Charset", NS_META_CHARSET_CID,
NS_META_CHARSET_CONTRACTID, nsMetaCharsetObserverConstructor,

View File

@ -43,7 +43,7 @@
NS_GENERIC_FACTORY_CONSTRUCTOR(nsDeflateConverter)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsZipWriter)
static nsModuleComponentInfo components[] =
static const nsModuleComponentInfo components[] =
{
{
DEFLATECONVERTER_CLASSNAME,

View File

@ -1010,7 +1010,7 @@ ScopedXPCOMStartup::~ScopedXPCOMStartup()
#define APPINFO_CID \
{ 0x95d89e3e, 0xa169, 0x41a3, { 0x8e, 0x56, 0x71, 0x99, 0x78, 0xe1, 0x5b, 0x12 } }
static nsModuleComponentInfo kComponents[] =
static const nsModuleComponentInfo kComponents[] =
{
{
"nsXULAppInfo",

View File

@ -79,7 +79,7 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsFilePicker)
NS_GENERIC_FACTORY_CONSTRUCTOR(nsBidiKeyboard)
#endif
static nsModuleComponentInfo components[] =
static const nsModuleComponentInfo components[] =
{
{ "Ph nsWindow",
NS_WINDOW_CID,