From 83740bbcf6d9ee19ab6c0ac55eeee09620cacc77 Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Wed, 15 Sep 1999 02:12:50 +0000 Subject: [PATCH] Fixing minor bug in command dispatcher. --- content/xul/document/src/nsXULCommandDispatcher.cpp | 4 +++- rdf/content/src/nsXULCommandDispatcher.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/content/xul/document/src/nsXULCommandDispatcher.cpp b/content/xul/document/src/nsXULCommandDispatcher.cpp index 63e2f3c9cba..463affce8a5 100644 --- a/content/xul/document/src/nsXULCommandDispatcher.cpp +++ b/content/xul/document/src/nsXULCommandDispatcher.cpp @@ -196,8 +196,10 @@ XULCommandDispatcherImpl::AddCommand(nsIDOMElement* aElement) if (!mFocusListeners) { mFocusListeners = new nsVoidArray(); - mFocusListeners->AppendElement((void*)aElement); // Weak ref to element. } + + mFocusListeners->AppendElement((void*)aElement); // Weak ref to element. + return NS_OK; } diff --git a/rdf/content/src/nsXULCommandDispatcher.cpp b/rdf/content/src/nsXULCommandDispatcher.cpp index 63e2f3c9cba..463affce8a5 100644 --- a/rdf/content/src/nsXULCommandDispatcher.cpp +++ b/rdf/content/src/nsXULCommandDispatcher.cpp @@ -196,8 +196,10 @@ XULCommandDispatcherImpl::AddCommand(nsIDOMElement* aElement) if (!mFocusListeners) { mFocusListeners = new nsVoidArray(); - mFocusListeners->AppendElement((void*)aElement); // Weak ref to element. } + + mFocusListeners->AppendElement((void*)aElement); // Weak ref to element. + return NS_OK; }