ObjImporter: use pre increment as a micro optimization.
parent
f1254639d0
commit
8272514b83
|
@ -48,8 +48,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include "ParsingUtils.h"
|
#include "ParsingUtils.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace Assimp
|
namespace Assimp {
|
||||||
{
|
|
||||||
|
|
||||||
/** @brief Returns true, if the last entry of the buffer is reached.
|
/** @brief Returns true, if the last entry of the buffer is reached.
|
||||||
* @param it Iterator of current position.
|
* @param it Iterator of current position.
|
||||||
|
@ -57,15 +56,14 @@ namespace Assimp
|
||||||
* @return true, if the end of the buffer is reached.
|
* @return true, if the end of the buffer is reached.
|
||||||
*/
|
*/
|
||||||
template<class char_t>
|
template<class char_t>
|
||||||
inline bool isEndOfBuffer( char_t it, char_t end )
|
inline bool isEndOfBuffer( char_t it, char_t end ) {
|
||||||
{
|
|
||||||
if ( it == end )
|
if ( it == end )
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
end--;
|
--end;
|
||||||
}
|
}
|
||||||
return ( it == end );
|
return ( it == end );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue