bug 124619: initializations to silence the compiler
git-svn-id: svn://10.0.0.236/trunk@114829 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -468,7 +468,7 @@ nsMathMLFrame::ParseNamedSpaceValue(nsIFrame* aMathMLmstyleFrame,
|
||||
|
||||
// See if it is one of the 'namedspace' (ranging 1/18em...7/18em)
|
||||
PRInt32 i = 0;
|
||||
nsIAtom* namedspaceAtom;
|
||||
nsIAtom* namedspaceAtom = nsnull;
|
||||
if (aString.Equals(NS_LITERAL_STRING("veryverythinmathspace"))) {
|
||||
i = 1;
|
||||
namedspaceAtom = nsMathMLAtoms::veryverythinmathspace_;
|
||||
|
||||
@@ -129,7 +129,7 @@ nsMathMLmfencedFrame::CreateFencesAndSeparators(nsIPresContext* aPresContext)
|
||||
{
|
||||
nsresult rv;
|
||||
nsAutoString value, data;
|
||||
PRBool isMutable;
|
||||
PRBool isMutable = PR_FALSE;
|
||||
|
||||
//////////////
|
||||
// see if the opening fence is there ...
|
||||
@@ -142,7 +142,7 @@ nsMathMLmfencedFrame::CreateFencesAndSeparators(nsIPresContext* aPresContext)
|
||||
else if (NS_CONTENT_ATTR_NOT_THERE == rv)
|
||||
data = PRUnichar('('); // default as per the MathML REC
|
||||
else
|
||||
data = nsAutoString();
|
||||
data.Truncate();
|
||||
|
||||
if (0 < data.Length()) {
|
||||
mOpenChar = new nsMathMLChar;
|
||||
@@ -163,7 +163,7 @@ nsMathMLmfencedFrame::CreateFencesAndSeparators(nsIPresContext* aPresContext)
|
||||
else if (NS_CONTENT_ATTR_NOT_THERE == rv)
|
||||
data = PRUnichar(')'); // default as per the MathML REC
|
||||
else
|
||||
data = nsAutoString();
|
||||
data.Truncate();
|
||||
|
||||
if (0 < data.Length()) {
|
||||
mCloseChar = new nsMathMLChar;
|
||||
@@ -184,16 +184,11 @@ nsMathMLmfencedFrame::CreateFencesAndSeparators(nsIPresContext* aPresContext)
|
||||
else if (NS_CONTENT_ATTR_NOT_THERE == rv)
|
||||
data = PRUnichar(','); // default as per the MathML REC
|
||||
else
|
||||
data = nsAutoString();
|
||||
data.Truncate();
|
||||
|
||||
mSeparatorsCount = data.Length();
|
||||
if (0 < mSeparatorsCount) {
|
||||
PRInt32 sepCount = -1;
|
||||
nsIFrame* childFrame = mFrames.FirstChild();
|
||||
while (childFrame) {
|
||||
sepCount++;
|
||||
childFrame->GetNextSibling(&childFrame);
|
||||
}
|
||||
PRInt32 sepCount = mFrames.GetLength() - 1;
|
||||
if (0 < sepCount) {
|
||||
mSeparatorsChar = new nsMathMLChar[sepCount];
|
||||
if (!mSeparatorsChar) return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
@@ -294,7 +294,7 @@ nsMathMLmpaddedFrame::UpdateValue(nsIPresContext* aPresContext,
|
||||
nsCSSUnit unit = aCSSValue.GetUnit();
|
||||
if (NS_MATHML_SIGN_INVALID != aSign && eCSSUnit_Null != unit)
|
||||
{
|
||||
nscoord scaler, amount;
|
||||
nscoord scaler = 0, amount = 0;
|
||||
|
||||
if (eCSSUnit_Percent == unit || eCSSUnit_Number == unit)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user