From 8272514b8366d972a3bca673cf5bc4743999d7fb Mon Sep 17 00:00:00 2001 From: Kim Kulling <kim.kulling@googlemail.com> Date: Sun, 27 Nov 2016 16:43:25 +0100 Subject: [PATCH] ObjImporter: use pre increment as a micro optimization. --- code/ObjTools.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/code/ObjTools.h b/code/ObjTools.h index b0978a199..26c9256ce 100644 --- a/code/ObjTools.h +++ b/code/ObjTools.h @@ -48,8 +48,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "ParsingUtils.h" #include <vector> -namespace Assimp -{ +namespace Assimp { /** @brief Returns true, if the last entry of the buffer is reached. * @param it Iterator of current position. @@ -57,15 +56,14 @@ namespace Assimp * @return true, if the end of the buffer is reached. */ 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 ) { return true; } else { - end--; + --end; } return ( it == end ); }