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:
alecf%netscape.com
2000-08-16 07:39:38 +00:00
parent b3a71129e7
commit 7431c64b15
7 changed files with 7 additions and 2 deletions

View File

@@ -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;

View File

@@ -325,6 +325,7 @@ nsXULElement::nsXULElement()
mDocument(nsnull),
mParent(nsnull),
mScriptObject(nsnull),
mContentId(0),
mLazyState(0),
mBindingParent(nsnull),
mSlots(nsnull)

View File

@@ -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)
{

View File

@@ -242,6 +242,7 @@ nsXIFDTD::nsXIFDTD() : nsIDTD(){
mLowerCaseAttributes=PR_TRUE;
mCharset.SetLength(0);
mSink=0;
mDTDState=NS_OK;
mXIFContext=new nsDTDContext();
mNodeRecycler=0;

View File

@@ -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;

View File

@@ -242,6 +242,7 @@ nsXIFDTD::nsXIFDTD() : nsIDTD(){
mLowerCaseAttributes=PR_TRUE;
mCharset.SetLength(0);
mSink=0;
mDTDState=NS_OK;
mXIFContext=new nsDTDContext();
mNodeRecycler=0;

View File

@@ -325,6 +325,7 @@ nsXULElement::nsXULElement()
mDocument(nsnull),
mParent(nsnull),
mScriptObject(nsnull),
mContentId(0),
mLazyState(0),
mBindingParent(nsnull),
mSlots(nsnull)