Cleanup pass
This commit is contained in:
@@ -66,18 +66,9 @@ namespace Nz
|
||||
return true;
|
||||
}
|
||||
|
||||
UInt32 TriangleIterator::operator[](unsigned int i) const
|
||||
UInt32 TriangleIterator::operator[](std::size_t i) const
|
||||
{
|
||||
#if NAZARA_UTILITY_SAFE
|
||||
if (i >= 3)
|
||||
{
|
||||
StringStream ss;
|
||||
ss << "Index out of range: (" << i << " >= 3)";
|
||||
|
||||
NazaraError(ss);
|
||||
throw std::domain_error(ss.ToString());
|
||||
}
|
||||
#endif
|
||||
NazaraAssert(i < 3, "Index out of range");
|
||||
|
||||
return m_triangleIndices[i];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user