From ae2cf8e26f0caeb0a2cc63ca3264b10196e9fcb2 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 15 Nov 2018 18:36:59 +0000 Subject: [PATCH] Removed unreachable code and fixed ambiguity warning. --- tiny_gltf.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index ba837ed..d439746 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -1129,8 +1129,6 @@ static bool Equals(const tinygltf::Value &one, const tinygltf::Value &other) { return false; } } - - return false; } // Equals function for std::vector using TINYGLTF_DOUBLE_EPSILON @@ -2211,7 +2209,7 @@ static bool ParseStringProperty( } if (ret) { - (*ret) = it.value(); + (*ret) = it.value().get(); } return true;