Removed the last of gimpy's warnings. r=gimpy.

This commit is contained in:
tbogard%aol.net 1999-10-19 08:03:11 +00:00
parent 021034bc23
commit 6bf524bc9e
2 changed files with 8 additions and 8 deletions

View File

@ -515,11 +515,11 @@ XULCommandDispatcherImpl::Matches(const nsString& aList, const nsString& aElemen
while(currentWindow) {
nsCOMPtr<nsIDOMWindow> domWindow = do_QueryInterface(currentWindow);
if(domWindow) {
nsCOMPtr<nsIControllers> controllers;
domWindow->GetControllers(getter_AddRefs(controllers));
if(controllers) {
nsCOMPtr<nsIControllers> controllers2;
domWindow->GetControllers(getter_AddRefs(controllers2));
if(controllers2) {
nsCOMPtr<nsIController> controller;
controllers->GetControllerForCommand(command.GetUnicode(), getter_AddRefs(controller));
controllers2->GetControllerForCommand(command.GetUnicode(), getter_AddRefs(controller));
if(controller) {
*_retval = controller;
NS_ADDREF(*_retval);

View File

@ -515,11 +515,11 @@ XULCommandDispatcherImpl::Matches(const nsString& aList, const nsString& aElemen
while(currentWindow) {
nsCOMPtr<nsIDOMWindow> domWindow = do_QueryInterface(currentWindow);
if(domWindow) {
nsCOMPtr<nsIControllers> controllers;
domWindow->GetControllers(getter_AddRefs(controllers));
if(controllers) {
nsCOMPtr<nsIControllers> controllers2;
domWindow->GetControllers(getter_AddRefs(controllers2));
if(controllers2) {
nsCOMPtr<nsIController> controller;
controllers->GetControllerForCommand(command.GetUnicode(), getter_AddRefs(controller));
controllers2->GetControllerForCommand(command.GetUnicode(), getter_AddRefs(controller));
if(controller) {
*_retval = controller;
NS_ADDREF(*_retval);