Bug 822025 - nsCSSFrameConstructor.cpp:9752:7: warning: variable 'wrapperType' is used uninitialized whenever switch default is taken. r=bz.
authorJonathan Watt <jwatt@jwatt.org>
Tue, 27 Nov 2012 11:49:01 +0000
changeset 121762 5dd106eee315a6ace40ddaa930d740d42344d686
parent 121761 3e4e600adc3bd5d36e995881211e36552e13ab94
child 121763 a80379c23cffa90223bc6f2305479a4bba936310
push idunknown
push userunknown
push dateunknown
reviewersbz
bugs822025
milestone20.0a1
Bug 822025 - nsCSSFrameConstructor.cpp:9752:7: warning: variable 'wrapperType' is used uninitialized whenever switch default is taken. r=bz.
layout/base/nsCSSFrameConstructor.cpp
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -9752,17 +9752,17 @@ nsCSSFrameConstructor::CreateNeededTable
         wrapperType = eTypeRow;
         break;
       case eTypeTable:
         // Either colgroup or rowgroup, depending on what we're grouping.
         wrapperType = groupingParentType == eTypeColGroup ?
           eTypeColGroup : eTypeRowGroup;
         break;
       default:
-        NS_NOTREACHED("Colgroups should be suppresing non-col child items");
+        MOZ_NOT_REACHED("Colgroups should be suppresing non-col child items");
         break;
     }
 
     const PseudoParentData& pseudoData = sPseudoParentData[wrapperType];
     nsIAtom* pseudoType = *pseudoData.mPseudoType;
     nsStyleContext* parentStyle = aParentFrame->GetStyleContext();
     nsIContent* parentContent = aParentFrame->GetContent();