From 2517c4848fc2df2cc7400568dc773e60110ff5be Mon Sep 17 00:00:00 2001 From: "law%netscape.com" Date: Thu, 2 Sep 1999 05:50:33 +0000 Subject: [PATCH] Fix warnings git-svn-id: svn://10.0.0.236/trunk@45667 18797224-902f-48f8-a5cc-f745e15eee43 --- .../components/public/nsIAppShellComponentImpl.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/xpfe/components/public/nsIAppShellComponentImpl.h b/mozilla/xpfe/components/public/nsIAppShellComponentImpl.h index 6070e7bb74e..08ca689cb93 100644 --- a/mozilla/xpfe/components/public/nsIAppShellComponentImpl.h +++ b/mozilla/xpfe/components/public/nsIAppShellComponentImpl.h @@ -113,9 +113,9 @@ public: if ( !mAppShell ) { if ( mServiceMgr ) { nsCID cid = NS_APPSHELL_SERVICE_CID; - nsresult rv = mServiceMgr->GetService( cid, - nsIAppShellService::GetIID(), - (nsISupports**)&mAppShell ); + mServiceMgr->GetService( cid, + nsIAppShellService::GetIID(), + (nsISupports**)&mAppShell ); } } return mAppShell; @@ -315,13 +315,13 @@ NSRegisterSelf( nsISupports* aServiceMgr, const char* path ) { \ if ( NS_SUCCEEDED( rv ) ) { \ registry->OpenWellKnownRegistry(nsIRegistry::ApplicationComponentRegistry); \ char buffer[256]; \ - char *cid = className::GetCID().ToString(); \ + char *cidString = className::GetCID().ToString(); \ PR_snprintf( buffer, \ sizeof buffer, \ "%s/%s", \ NS_IAPPSHELLCOMPONENT_KEY, \ - cid ? cid : "unknown" ); \ - delete [] cid; \ + cidString ? cidString : "unknown" ); \ + delete [] cidString; \ nsIRegistry::Key key; \ rv = registry->AddSubtree( nsIRegistry::Common, \ buffer, \