Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent MozReview-Commit-ID: KuUsnVe2h8L
This commit is contained in:
@@ -74,8 +74,8 @@ nsresult
|
||||
HTMLFrameSetElement::GetRowSpec(int32_t *aNumValues,
|
||||
const nsFramesetSpec** aSpecs)
|
||||
{
|
||||
NS_PRECONDITION(aNumValues, "Must have a pointer to an integer here!");
|
||||
NS_PRECONDITION(aSpecs, "Must have a pointer to an array of nsFramesetSpecs");
|
||||
MOZ_ASSERT(aNumValues, "Must have a pointer to an integer here!");
|
||||
MOZ_ASSERT(aSpecs, "Must have a pointer to an array of nsFramesetSpecs");
|
||||
*aNumValues = 0;
|
||||
*aSpecs = nullptr;
|
||||
|
||||
@@ -104,8 +104,8 @@ nsresult
|
||||
HTMLFrameSetElement::GetColSpec(int32_t *aNumValues,
|
||||
const nsFramesetSpec** aSpecs)
|
||||
{
|
||||
NS_PRECONDITION(aNumValues, "Must have a pointer to an integer here!");
|
||||
NS_PRECONDITION(aSpecs, "Must have a pointer to an array of nsFramesetSpecs");
|
||||
MOZ_ASSERT(aNumValues, "Must have a pointer to an integer here!");
|
||||
MOZ_ASSERT(aSpecs, "Must have a pointer to an array of nsFramesetSpecs");
|
||||
*aNumValues = 0;
|
||||
*aSpecs = nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user