From c3d15a3f5166d295544cd16243f4c8e3d352d4a6 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Fri, 16 Dec 2022 09:03:40 +0100 Subject: [PATCH] Fix minor review findings. --- code/AssetLib/Obj/ObjTools.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/AssetLib/Obj/ObjTools.h b/code/AssetLib/Obj/ObjTools.h index 99d2bc5e3..a76054825 100644 --- a/code/AssetLib/Obj/ObjTools.h +++ b/code/AssetLib/Obj/ObjTools.h @@ -2,7 +2,7 @@ Open Asset Import Library (assimp) ---------------------------------------------------------------------- -Copyright (c) 2006-2021, assimp team +Copyright (c) 2006-2022, assimp team All rights reserved. @@ -111,8 +111,9 @@ inline Char_T getNextToken(Char_T pBuffer, Char_T pEnd) { */ template inline char_t skipLine(char_t it, char_t end, unsigned int &uiLine) { - if (it >= end) + if (it >= end) { return it; + } while (!isEndOfBuffer(it, end) && !IsLineEnd(*it)) { ++it; @@ -132,7 +133,7 @@ inline char_t skipLine(char_t it, char_t end, unsigned int &uiLine) { /** * @brief Get a name from the current line. Preserve space in the middle, - * but trim it at the end. + * but trim it at the end. * @param[in] it set to current position * @param[in] end set to end of scratch buffer for readout * @param[out] name Separated name