Fix spurious NS_WARNING by adding missing return. (Bug 632802) r=dbaron a2.0=dbaron
authorVivien Nicolas <21@vingtetun.org>
Thu, 10 Feb 2011 15:21:07 -0800
changeset 62316 0a3f2dd6870f9f4803c9a9c74313eaf700a8bc10
parent 62315 3268bdbd64c4edc0d86e2cab9511713f83046b09
child 62317 5c77943a504d44f99c6a694e2f9fc0aa913f485b
push idunknown
push userunknown
push dateunknown
reviewersdbaron
bugs632802
milestone2.0b12pre
Fix spurious NS_WARNING by adding missing return. (Bug 632802) r=dbaron a2.0=dbaron
layout/base/nsPresShell.cpp
--- a/layout/base/nsPresShell.cpp
+++ b/layout/base/nsPresShell.cpp
@@ -8173,16 +8173,17 @@ PresShell::Observe(nsISupports* aSubject
   if (!nsCRT::strcmp(aTopic, "user-sheet-removed") && mStyleSet) {
     RemoveSheet(nsStyleSet::eUserSheet, aSubject);
     return NS_OK;
   }
 
 #ifdef ACCESSIBILITY
   if (!nsCRT::strcmp(aTopic, "a11y-init-or-shutdown")) {
     gIsAccessibilityActive = aData && *aData == '1';
+    return NS_OK;
   }
 #endif
   NS_WARNING("unrecognized topic in PresShell::Observe");
   return NS_ERROR_FAILURE;
 }
 
 PRBool
 nsIPresShell::AddRefreshObserverInternal(nsARefreshObserver* aObserver,