change all GetIID() calls to nsCOMTypeInfo<foo>::GetIID() calls
This commit is contained in:
@@ -58,7 +58,7 @@ nsFileProtocolHandler::~nsFileProtocolHandler()
|
||||
NS_IF_RELEASE(mSuspended);
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsFileProtocolHandler, nsIProtocolHandler::GetIID());
|
||||
NS_IMPL_ISUPPORTS(nsFileProtocolHandler, nsCOMTypeInfo<nsIProtocolHandler>::GetIID());
|
||||
|
||||
NS_METHOD
|
||||
nsFileProtocolHandler::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)
|
||||
@@ -129,7 +129,7 @@ nsFileProtocolHandler::NewURI(const char *aSpec, nsIURI *aBaseURI,
|
||||
}
|
||||
else {
|
||||
rv = nsComponentManager::CreateInstance(kStandardURLCID, nsnull,
|
||||
nsIURI::GetIID(),
|
||||
nsCOMTypeInfo<nsIURI>::GetIID(),
|
||||
(void**)&url);
|
||||
}
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
@@ -153,7 +153,7 @@ nsFileProtocolHandler::NewChannel(const char* verb, nsIURI* url,
|
||||
nsresult rv;
|
||||
|
||||
nsFileChannel* channel;
|
||||
rv = nsFileChannel::Create(nsnull, nsIFileChannel::GetIID(), (void**)&channel);
|
||||
rv = nsFileChannel::Create(nsnull, nsCOMTypeInfo<nsIFileChannel>::GetIID(), (void**)&channel);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = channel->Init(this, verb, url, eventSinkGetter, eventQueue);
|
||||
|
||||
Reference in New Issue
Block a user