fix various unused and uninitialize variables, newline at end of file, etc.

This commit is contained in:
alecf%netscape.com 1999-04-06 04:27:51 +00:00
Родитель 840de6c963
Коммит 878d7ce196
3 изменённых файлов: 2 добавлений и 7 удалений

Просмотреть файл

@ -421,8 +421,6 @@ NS_IMETHODIMP nsPop3Protocol::OnStopBinding(nsIURL* aURL, nsresult aStatus,
nsPop3Protocol::nsPop3Protocol(nsIURL* aURL) : nsMsgLineBuffer(NULL, FALSE) nsPop3Protocol::nsPop3Protocol(nsIURL* aURL) : nsMsgLineBuffer(NULL, FALSE)
{ {
nsresult rv = 0;
NS_INIT_REFCNT(); NS_INIT_REFCNT();
Initialize(aURL); Initialize(aURL);
} }
@ -462,7 +460,6 @@ void nsPop3Protocol::Initialize(nsIURL * aURL)
if (NS_SUCCEEDED(rv) && m_nsIPop3URL) if (NS_SUCCEEDED(rv) && m_nsIPop3URL)
{ {
// extract the file name and create a file transport... // extract the file name and create a file transport...
const char * fileName = nsnull;
nsINetService* pNetService; nsINetService* pNetService;
rv = nsServiceManager::GetService(kNetServiceCID, rv = nsServiceManager::GetService(kNetServiceCID,
nsINetService::GetIID(), nsINetService::GetIID(),
@ -2536,8 +2533,6 @@ nsPop3Protocol::ProcessPop3State (nsIURL* aURL, nsIInputStream* aInputStream,
having to worry about the server timing out on us while having to worry about the server timing out on us while
we wait for user input. */ we wait for user input. */
{ {
char *fmt1 = 0, *fmt2 = 0;
/* If we're just checking for new mail (biff) then don't /* If we're just checking for new mail (biff) then don't
prompt the user for a password; just tell him we don't prompt the user for a password; just tell him we don't
know whether he has new mail. */ know whether he has new mail. */

Просмотреть файл

@ -54,4 +54,4 @@ protected:
}; };
#endif /* nsPop3Service_h___ */ #endif /* nsPop3Service_h___ */

Просмотреть файл

@ -346,7 +346,7 @@ nsresult nsPop3URL::ParseURL(const nsString& aSpec, const nsIURL* aURL)
// protocol spec. A protocol spec is an alphanumeric string of 1 or // protocol spec. A protocol spec is an alphanumeric string of 1 or
// more characters that is terminated with a colon. // more characters that is terminated with a colon.
PRBool isAbsolute = PR_FALSE; PRBool isAbsolute = PR_FALSE;
char* cp; char* cp = nsnull;
char* ap = cSpec; char* ap = cSpec;
char ch; char ch;
while (0 != (ch = *ap)) { while (0 != (ch = *ap)) {