Bug 786533. Add a comment about the purpose of XPCOM_MIN/MAX. r=ehsan

--HG--
extra : rebase_source : 97ed3b670dee51b929344e1222be0d61ce18b3af
This commit is contained in:
Jeff Muizelaar 2013-01-15 11:26:58 -05:00
parent 4f48cd4e2c
commit 0add155be0

View File

@ -25,6 +25,9 @@ NS_ROUNDUP( const T& a, const T& b )
return ((a + (b - 1)) / b) * b;
}
// We use these instead of std::min/max because we can't include the algorithm
// header in all of XPCOM because the stl wrappers will error out when included
// in parts of XPCOM. These functions should never be used outside of XPCOM.
template <class T>
inline
const T&