mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Fix Solaris Build problems
This commit is contained in:
parent
ae67d12163
commit
e38a931d36
@ -142,7 +142,7 @@ NS_METHOD nsButton::SetLabel(const nsString& aText)
|
||||
XtVaSetValues(mWidget, XmNlabelString, str, nsnull);
|
||||
NS_FREE_STR_BUF(label);
|
||||
XmStringFree(str);
|
||||
|
||||
return (NS_OK);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
@ -162,6 +162,7 @@ NS_METHOD nsButton::GetLabel(nsString& aBuffer)
|
||||
}
|
||||
|
||||
XmStringFree(str);
|
||||
return (NS_OK);
|
||||
|
||||
}
|
||||
|
||||
|
@ -148,7 +148,7 @@ NS_METHOD nsDialog::SetLabel(const nsString& aText)
|
||||
XtVaSetValues(mShell, XmNtitle, label, nsnull);
|
||||
NS_FREE_STR_BUF(label);
|
||||
XmStringFree(str);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
@ -168,6 +168,7 @@ NS_METHOD nsDialog::GetLabel(nsString& aBuffer)
|
||||
}
|
||||
|
||||
XmStringFree(str);
|
||||
return NS_OK;
|
||||
|
||||
}
|
||||
|
||||
|
@ -227,6 +227,7 @@ PRBool nsFileWidget::Show()
|
||||
mFile.Append(fileBuffer);
|
||||
}
|
||||
*/
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
@ -114,6 +114,7 @@ void nsLabel::PreCreateWidget(nsWidgetInitData *aInitData)
|
||||
NS_METHOD nsLabel::SetAlignment(nsLabelAlignment aAlignment)
|
||||
{
|
||||
mAlignment = aAlignment;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
@ -176,6 +177,7 @@ NS_METHOD nsLabel::SetLabel(const nsString& aText)
|
||||
XtVaSetValues(mWidget, XmNlabelString, str, nsnull);
|
||||
NS_FREE_STR_BUF(label);
|
||||
XmStringFree(str);
|
||||
return NS_OK;
|
||||
|
||||
}
|
||||
|
||||
@ -196,6 +198,7 @@ NS_METHOD nsLabel::GetLabel(nsString& aBuffer)
|
||||
}
|
||||
|
||||
XmStringFree(str);
|
||||
return NS_OK;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user