зеркало из https://github.com/mozilla/gecko-dev.git
Bug #11837 use NS_GENERIC_FACTORY_CONSTRUCTOR, remove NS_New**
r=sspitzer
This commit is contained in:
Родитель
054da20a5c
Коммит
55830c8d88
|
@ -3325,18 +3325,3 @@ NS_IMETHODIMP nsImapMailFolder::MatchName(nsString *name, PRBool *matches)
|
|||
*matches = mName.Equals(*name, isInbox);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP NS_NewImapMailFolder(nsISupports * aOuter, REFNSIID iid, void ** aResult)
|
||||
{
|
||||
if (!aResult) return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (aOuter)
|
||||
{
|
||||
*aResult = nsnull;
|
||||
return NS_ERROR_NO_AGGREGATION;
|
||||
}
|
||||
|
||||
nsImapMailFolder *imapFolder = new nsImapMailFolder();
|
||||
if (!imapFolder) return NS_ERROR_OUT_OF_MEMORY;
|
||||
return imapFolder->QueryInterface(iid, aResult);
|
||||
}
|
||||
|
|
|
@ -337,8 +337,4 @@ protected:
|
|||
|
||||
};
|
||||
|
||||
// factory method
|
||||
|
||||
NS_IMETHODIMP NS_NewImapMailFolder(nsISupports * aOuter, REFNSIID iid, void ** aResult);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -95,18 +95,3 @@ nsresult nsImapMessage::GetFolderFromURI(nsIMsgFolder **folder)
|
|||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP NS_NewImapMessage(nsISupports * aOuter, REFNSIID iid, void ** aResult)
|
||||
{
|
||||
if (!aResult) return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (aOuter)
|
||||
{
|
||||
*aResult = nsnull;
|
||||
return NS_ERROR_NO_AGGREGATION;
|
||||
}
|
||||
|
||||
nsImapMessage * imapMsg = new nsImapMessage();
|
||||
if (!imapMsg) return NS_ERROR_OUT_OF_MEMORY;
|
||||
return imapMsg->QueryInterface(iid, aResult);
|
||||
}
|
||||
|
|
|
@ -41,8 +41,4 @@ protected:
|
|||
|
||||
};
|
||||
|
||||
// factory method
|
||||
|
||||
NS_IMETHODIMP NS_NewImapMessage(nsISupports * aOuter, REFNSIID iid, void **result);
|
||||
|
||||
#endif //nsImapMessage_h__
|
||||
|
|
|
@ -129,21 +129,6 @@ void TLineDownloadCache::CacheLine(const char *line, PRUint32 uid)
|
|||
fBytesUsed += lineLength;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP NS_NewImapProtocol(nsISupports * aOuter, REFNSIID iid, void ** aResult)
|
||||
{
|
||||
if (!aResult) return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (aOuter)
|
||||
{
|
||||
*aResult = nsnull;
|
||||
return NS_ERROR_NO_AGGREGATION;
|
||||
}
|
||||
|
||||
nsImapProtocol *imapProtocol = new nsImapProtocol();
|
||||
if (!imapProtocol) return NS_ERROR_OUT_OF_MEMORY;
|
||||
return imapProtocol->QueryInterface(iid, aResult);
|
||||
}
|
||||
|
||||
|
||||
/* the following macros actually implement addref, release and query interface for our component. */
|
||||
NS_IMPL_THREADSAFE_ADDREF(nsImapProtocol)
|
||||
|
@ -6350,18 +6335,3 @@ NS_IMETHODIMP nsImapMockChannel::Resume()
|
|||
{
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP NS_NewImapMockChannel(nsISupports * aOuter, REFNSIID iid, void ** aResult)
|
||||
{
|
||||
if (!aResult) return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (aOuter)
|
||||
{
|
||||
*aResult = nsnull;
|
||||
return NS_ERROR_NO_AGGREGATION;
|
||||
}
|
||||
|
||||
nsImapMockChannel * mockChannel = new nsImapMockChannel();
|
||||
if (!mockChannel) return NS_ERROR_OUT_OF_MEMORY;
|
||||
return mockChannel->QueryInterface(iid, aResult);
|
||||
}
|
||||
|
|
|
@ -559,7 +559,4 @@ protected:
|
|||
nsISupports * m_channelContext;
|
||||
};
|
||||
|
||||
NS_IMETHODIMP NS_NewImapProtocol(nsISupports * aOuter, REFNSIID iid, void **result);
|
||||
NS_IMETHODIMP NS_NewImapMockChannel(nsISupports * aOuter, REFNSIID iid, void **result);
|
||||
|
||||
#endif // nsImapProtocol_h___
|
||||
|
|
|
@ -2135,18 +2135,3 @@ nsImapService::GetServerIID(nsIID* *aServerIID)
|
|||
*aServerIID = new nsIID(NS_GET_IID(nsIImapIncomingServer));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP NS_NewImapService(nsISupports * aOuter, REFNSIID iid, void ** aResult)
|
||||
{
|
||||
if (!aResult) return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (aOuter)
|
||||
{
|
||||
*aResult = nsnull;
|
||||
return NS_ERROR_NO_AGGREGATION;
|
||||
}
|
||||
|
||||
nsImapService *imapService = new nsImapService();
|
||||
if (!imapService) return NS_ERROR_OUT_OF_MEMORY;
|
||||
return imapService->QueryInterface(iid, aResult);
|
||||
}
|
||||
|
|
|
@ -226,9 +226,4 @@ protected:
|
|||
|
||||
};
|
||||
|
||||
// factory method
|
||||
|
||||
NS_IMETHODIMP NS_NewImapService(nsISupports * aOuter, REFNSIID iid, void ** aResult);
|
||||
|
||||
|
||||
#endif /* nsImapService_h___ */
|
||||
|
|
|
@ -1099,18 +1099,3 @@ void nsImapUrl::ParseListOfMessageIds()
|
|||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP NS_NewImapUrl(nsISupports * aOuter, REFNSIID iid, void ** aResult)
|
||||
{
|
||||
if (!aResult) return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (aOuter)
|
||||
{
|
||||
*aResult = nsnull;
|
||||
return NS_ERROR_NO_AGGREGATION;
|
||||
}
|
||||
|
||||
nsImapUrl *imapUrl = new nsImapUrl();
|
||||
if (!imapUrl) return NS_ERROR_OUT_OF_MEMORY;
|
||||
return imapUrl->QueryInterface(iid, aResult);
|
||||
}
|
||||
|
||||
|
|
|
@ -160,6 +160,4 @@ protected:
|
|||
PRBool m_addDummyEnvelope;
|
||||
};
|
||||
|
||||
NS_IMETHODIMP NS_NewImapUrl(nsISupports * aOuter, REFNSIID iid, void **result);
|
||||
|
||||
#endif /* nsImapUrl_h___ */
|
||||
|
|
Загрузка…
Ссылка в новой задаче