fix nsISupports IID
git-svn-id: svn://10.0.0.236/trunk@28622 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
f815c146ab
commit
e90495e1e9
@ -268,6 +268,7 @@ private:
|
||||
// Standard implementations of addref/release.
|
||||
NS_IMPL_ADDREF( nsFindDialog );
|
||||
NS_IMPL_RELEASE( nsFindDialog );
|
||||
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsFindDialog::QueryInterface( REFNSIID anIID, void **anInstancePtr) {
|
||||
@ -284,7 +285,7 @@ nsFindDialog::QueryInterface( REFNSIID anIID, void **anInstancePtr) {
|
||||
} else if ( anIID.Equals( nsIDocumentObserver::GetIID() ) ) {
|
||||
*anInstancePtr = (void*) ((nsIDocumentObserver*)this);
|
||||
NS_ADDREF_THIS();
|
||||
} else if ( anIID.Equals( ::nsISupports::GetIID() ) ) {
|
||||
} else if ( anIID.Equals( kISupportsIID ) ) {
|
||||
*anInstancePtr = (void*) ((nsISupports*)(nsIDocumentObserver*)this);
|
||||
NS_ADDREF_THIS();
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user