From 7967deb06a7c549d16133330e3d383faa84f425f Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sun, 1 Dec 2019 12:34:45 +0100 Subject: [PATCH] Update glTF2Asset.inl some minor review finding: use brackets and add a newline. --- code/glTF2/glTF2Asset.inl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/glTF2/glTF2Asset.inl b/code/glTF2/glTF2Asset.inl index 32bca88ce..99f8c876f 100644 --- a/code/glTF2/glTF2Asset.inl +++ b/code/glTF2/glTF2Asset.inl @@ -1492,10 +1492,11 @@ inline void Asset::SetAsBinary() inline void Asset::ReadExtensionsRequired(Document& doc) { Value* extsRequired = FindArray(doc, "extensionsRequired"); - if (!extsRequired) return; + if (nullptr == extsRequired) { + return; + } std::gltf_unordered_map exts; - for (unsigned int i = 0; i < extsRequired->Size(); ++i) { if ((*extsRequired)[i].IsString()) { exts[(*extsRequired)[i].GetString()] = true;