Conversion to NS_GET_IID(). Bug #20232, r=scc@netscape.com
This commit is contained in:
Родитель
5aa9b30469
Коммит
7a01c1efa9
|
@ -18,6 +18,7 @@
|
|||
*
|
||||
* Contributor(s):
|
||||
* Radha Kulkarni <radha@netscape.com>
|
||||
* Pierre Phaneuf <pp@ludusdesign.com>
|
||||
*/
|
||||
#include "nsISupportsUtils.h"
|
||||
#include "nsIDOMDocument.h"
|
||||
|
@ -363,7 +364,7 @@ nsSHEnumerator::CurrentItem(nsISHEntry **aItem)
|
|||
PRUint32 cnt = mSHEntry->mChildren.Count();
|
||||
if (mIndex >=0 && mIndex < (PRInt32)cnt){
|
||||
nsCOMPtr<nsISupports> indexIsupports = (nsISHEntry *) mSHEntry->mChildren.ElementAt(mIndex);
|
||||
return indexIsupports->QueryInterface(nsISHEntry::GetIID(),(void **)aItem);
|
||||
return indexIsupports->QueryInterface(NS_GET_IID(nsISHEntry),(void **)aItem);
|
||||
}
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
@ -389,12 +390,12 @@ nsRangeListIterator::QueryInterface(REFNSIID aIID, void** aInstancePtr)
|
|||
if (nsnull == aInstancePtr) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
if (aIID.Equals(nsIEnumerator::GetIID())) {
|
||||
if (aIID.Equals(NS_GET_IID(nsIEnumerator))) {
|
||||
*aInstancePtr = NS_STATIC_CAST(nsIEnumerator*, this);
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
if (aIID.Equals(nsIBidirectionalEnumerator::GetIID())) {
|
||||
if (aIID.Equals(NS_GET_IID(nsIBidirectionalEnumerator))) {
|
||||
*aInstancePtr = NS_STATIC_CAST(nsIBidirectionalEnumerator*, this);
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
*
|
||||
* Contributor(s):
|
||||
* Radha Kulkarni <radha@netscape.com>
|
||||
* Pierre Phaneuf <pp@ludusdesign.com>
|
||||
*/
|
||||
|
||||
#include "nsISupportsUtils.h"
|
||||
|
@ -67,7 +68,7 @@ nsSHistory::AddEntry(nsISHEntry * aSHEntry)
|
|||
nsCOMPtr<nsISHTransaction> txn;
|
||||
rv = nsComponentManager::CreateInstance(NS_SHTRANSACTION_PROGID,
|
||||
nsnull,
|
||||
nsISHTransaction::GetIID(),
|
||||
NS_GET_IID(nsISHTransaction),
|
||||
getter_AddRefs(txn));
|
||||
nsCOMPtr<nsISHTransaction> parent;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче