fix a bunch of UMRs r=syd
(no bug but I needed these to get my purify build going) git-svn-id: svn://10.0.0.236/trunk@76425 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -149,7 +149,7 @@ nsHTMLFontElement::StringToAttribute(nsIAtom* aAttribute,
|
||||
PRInt32 ec, v = tmp.ToInteger(&ec);
|
||||
if(NS_SUCCEEDED(ec)){
|
||||
tmp.CompressWhitespace(PR_TRUE, PR_FALSE);
|
||||
PRUnichar ch = tmp.First();
|
||||
PRUnichar ch = tmp.IsEmpty() ? 0 : tmp.First();
|
||||
aResult.SetIntValue(v, ((ch == '+') || (ch == '-')) ?
|
||||
eHTMLUnit_Integer : eHTMLUnit_Enumerated);
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
|
||||
@@ -325,6 +325,7 @@ nsXULElement::nsXULElement()
|
||||
mDocument(nsnull),
|
||||
mParent(nsnull),
|
||||
mScriptObject(nsnull),
|
||||
mContentId(0),
|
||||
mLazyState(0),
|
||||
mBindingParent(nsnull),
|
||||
mSlots(nsnull)
|
||||
|
||||
@@ -2796,6 +2796,7 @@ HDC dc1 = NULL;
|
||||
|
||||
// Begin -- section of code to get the real x-height with GetGlyphOutline()
|
||||
GLYPHMETRICS gm;
|
||||
memset((void*)&gm, 0, sizeof(gm));
|
||||
DWORD len = gGlyphAgent.GetGlyphMetrics(dc, PRUnichar('x'), 0, &gm);
|
||||
if (GDI_ERROR != len && gm.gmptGlyphOrigin.y > 0)
|
||||
{
|
||||
|
||||
@@ -242,6 +242,7 @@ nsXIFDTD::nsXIFDTD() : nsIDTD(){
|
||||
mLowerCaseAttributes=PR_TRUE;
|
||||
mCharset.SetLength(0);
|
||||
mSink=0;
|
||||
mDTDState=NS_OK;
|
||||
|
||||
mXIFContext=new nsDTDContext();
|
||||
mNodeRecycler=0;
|
||||
|
||||
@@ -149,7 +149,7 @@ nsHTMLFontElement::StringToAttribute(nsIAtom* aAttribute,
|
||||
PRInt32 ec, v = tmp.ToInteger(&ec);
|
||||
if(NS_SUCCEEDED(ec)){
|
||||
tmp.CompressWhitespace(PR_TRUE, PR_FALSE);
|
||||
PRUnichar ch = tmp.First();
|
||||
PRUnichar ch = tmp.IsEmpty() ? 0 : tmp.First();
|
||||
aResult.SetIntValue(v, ((ch == '+') || (ch == '-')) ?
|
||||
eHTMLUnit_Integer : eHTMLUnit_Enumerated);
|
||||
return NS_CONTENT_ATTR_HAS_VALUE;
|
||||
|
||||
@@ -242,6 +242,7 @@ nsXIFDTD::nsXIFDTD() : nsIDTD(){
|
||||
mLowerCaseAttributes=PR_TRUE;
|
||||
mCharset.SetLength(0);
|
||||
mSink=0;
|
||||
mDTDState=NS_OK;
|
||||
|
||||
mXIFContext=new nsDTDContext();
|
||||
mNodeRecycler=0;
|
||||
|
||||
@@ -325,6 +325,7 @@ nsXULElement::nsXULElement()
|
||||
mDocument(nsnull),
|
||||
mParent(nsnull),
|
||||
mScriptObject(nsnull),
|
||||
mContentId(0),
|
||||
mLazyState(0),
|
||||
mBindingParent(nsnull),
|
||||
mSlots(nsnull)
|
||||
|
||||
Reference in New Issue
Block a user