зеркало из https://github.com/mozilla/gecko-dev.git
Bug 530374 - Replace PR_MIN/PR_MAX with NS_MIN/NS_MAX in xslt, r=jonas
This commit is contained in:
Родитель
dac7014353
Коммит
58cdd43a57
|
@ -265,7 +265,7 @@ void Double::toString(double aValue, nsAString& aDest)
|
|||
}
|
||||
}
|
||||
// mantissa
|
||||
int firstlen = PR_MIN(intDigits, endp - buf);
|
||||
int firstlen = NS_MIN(intDigits, endp - buf);
|
||||
for (i = 0; i < firstlen; i++) {
|
||||
*dest = buf[i]; ++dest;
|
||||
}
|
||||
|
|
|
@ -121,7 +121,7 @@ public:
|
|||
|
||||
void write(const PRUnichar* aSource, PRUint32 aSourceLength)
|
||||
{
|
||||
PRUint32 len = PR_MIN(PRUint32(mIter.size_forward()), aSourceLength);
|
||||
PRUint32 len = NS_MIN(PRUint32(mIter.size_forward()), aSourceLength);
|
||||
PRUnichar* cp = mIter.get();
|
||||
const PRUnichar* end = aSource + len;
|
||||
while (aSource != end) {
|
||||
|
|
|
@ -722,7 +722,7 @@ txXPathNodeUtils::comparePosition(const txXPathNode& aNode,
|
|||
PRInt32 otherTotal = otherParents.Length() - 1;
|
||||
NS_ASSERTION(total != otherTotal, "Can't have same number of parents");
|
||||
|
||||
PRInt32 lastIndex = PR_MIN(total, otherTotal);
|
||||
PRInt32 lastIndex = NS_MIN(total, otherTotal);
|
||||
PRInt32 i;
|
||||
parent = nsnull;
|
||||
for (i = 0; i <= lastIndex; ++i) {
|
||||
|
|
|
@ -552,7 +552,7 @@ PRBool txNodeSet::ensureGrowSize(PRInt32 aSize)
|
|||
|
||||
// This isn't 100% safe. But until someone manages to make a 1gig nodeset
|
||||
// it should be ok.
|
||||
PRInt32 newLength = PR_MAX(oldLength, kTxNodeSetMinSize);
|
||||
PRInt32 newLength = NS_MAX(oldLength, kTxNodeSetMinSize);
|
||||
|
||||
while (newLength < ensureSize) {
|
||||
newLength *= kTxNodeSetGrowFactor;
|
||||
|
|
|
@ -660,7 +660,7 @@ txMozillaXMLOutput::createTxWrapper()
|
|||
// The new documentElement should go after the document type.
|
||||
// This is needed for cases when there is no existing
|
||||
// documentElement in the document.
|
||||
rootLocation = PR_MAX(rootLocation, j + 1);
|
||||
rootLocation = NS_MAX(rootLocation, j + 1);
|
||||
#endif
|
||||
++j;
|
||||
}
|
||||
|
|
|
@ -984,7 +984,7 @@ nsXULElement::RemoveChildAt(PRUint32 aIndex, PRBool aNotify, PRBool aMutationEve
|
|||
PRInt32 treeRows;
|
||||
listBox->GetRowCount(&treeRows);
|
||||
if (treeRows > 0) {
|
||||
newCurrentIndex = PR_MIN((treeRows - 1), newCurrentIndex);
|
||||
newCurrentIndex = NS_MIN((treeRows - 1), newCurrentIndex);
|
||||
nsCOMPtr<nsIDOMElement> newCurrentItem;
|
||||
listBox->GetItemAtIndex(newCurrentIndex, getter_AddRefs(newCurrentItem));
|
||||
nsCOMPtr<nsIDOMXULSelectControlItemElement> xulCurItem = do_QueryInterface(newCurrentItem);
|
||||
|
|
Загрузка…
Ссылка в новой задаче