diff --git a/mozilla/xpfe/appshell/src/nsCommandLineService.cpp b/mozilla/xpfe/appshell/src/nsCommandLineService.cpp index 2d7179b3b88..793038c0333 100644 --- a/mozilla/xpfe/appshell/src/nsCommandLineService.cpp +++ b/mozilla/xpfe/appshell/src/nsCommandLineService.cpp @@ -60,15 +60,19 @@ protected: nsCmdLineService::nsCmdLineService() + : mArgCount(0) { - mArgCount = 0; + NS_INIT_REFCNT(); } +/* + * Implement the nsISupports methods... + */ +NS_IMPL_ISUPPORTS(nsCmdLineService, kICommandLineServiceIID); NS_IMETHODIMP nsCmdLineService::Initialize(int argc, char ** argv) { - NS_INIT_REFCNT(); PRInt32 i=0; nsresult rv = nsnull; @@ -233,14 +237,6 @@ nsCmdLineService::PrintCmdArgs() } #endif -/* - * Implement the nsISupports methods... - */ -NS_IMPL_ISUPPORTS(nsCmdLineService, kICommandLineServiceIID); - - - - NS_EXPORT nsresult NS_NewCmdLineService(nsICmdLineService** aResult) { if (nsnull == aResult) { diff --git a/mozilla/xpfe/components/startup/src/nsCommandLineService.cpp b/mozilla/xpfe/components/startup/src/nsCommandLineService.cpp index 2d7179b3b88..793038c0333 100644 --- a/mozilla/xpfe/components/startup/src/nsCommandLineService.cpp +++ b/mozilla/xpfe/components/startup/src/nsCommandLineService.cpp @@ -60,15 +60,19 @@ protected: nsCmdLineService::nsCmdLineService() + : mArgCount(0) { - mArgCount = 0; + NS_INIT_REFCNT(); } +/* + * Implement the nsISupports methods... + */ +NS_IMPL_ISUPPORTS(nsCmdLineService, kICommandLineServiceIID); NS_IMETHODIMP nsCmdLineService::Initialize(int argc, char ** argv) { - NS_INIT_REFCNT(); PRInt32 i=0; nsresult rv = nsnull; @@ -233,14 +237,6 @@ nsCmdLineService::PrintCmdArgs() } #endif -/* - * Implement the nsISupports methods... - */ -NS_IMPL_ISUPPORTS(nsCmdLineService, kICommandLineServiceIID); - - - - NS_EXPORT nsresult NS_NewCmdLineService(nsICmdLineService** aResult) { if (nsnull == aResult) {