Reworked frame factory methods; fixed bug 4519
git-svn-id: svn://10.0.0.236/trunk@31154 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -118,14 +118,18 @@ protected:
|
||||
PRBool mChecked;
|
||||
};
|
||||
|
||||
nsresult NS_NewCheckboxControlFrame(nsIFrame*& aResult);
|
||||
nsresult
|
||||
NS_NewCheckboxControlFrame(nsIFrame*& aResult)
|
||||
NS_NewCheckboxControlFrame(nsIFrame** aNewFrame)
|
||||
{
|
||||
aResult = new nsCheckboxControlFrame;
|
||||
if (nsnull == aResult) {
|
||||
NS_PRECONDITION(aNewFrame, "null OUT ptr");
|
||||
if (nsnull == aNewFrame) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
nsCheckboxControlFrame* it = new nsCheckboxControlFrame;
|
||||
if (!it) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
*aNewFrame = it;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user