diff --git a/indra/llprimitive/llgltfmaterial.cpp b/indra/llprimitive/llgltfmaterial.cpp index 2e920aa44e1f0b8aed765f9ccba0e1c5e4ee7408..291e2c2bf56d0d120d90ac156b3750fedbce47fd 100644 --- a/indra/llprimitive/llgltfmaterial.cpp +++ b/indra/llprimitive/llgltfmaterial.cpp @@ -33,7 +33,7 @@ const char* LLGLTFMaterial::ASSET_VERSION = "1.1"; const char* LLGLTFMaterial::ASSET_TYPE = "GLTF 2.0"; -const std::array<char*, 2> LLGLTFMaterial::ACCEPTED_ASSET_VERSIONS = { "1.0", "1.1" }; +const std::array<std::string, 2> LLGLTFMaterial::ACCEPTED_ASSET_VERSIONS = { "1.0", "1.1" }; const char* GLTF_FILE_EXTENSION_TRANSFORM = "KHR_texture_transform"; const char* GLTF_FILE_EXTENSION_TRANSFORM_SCALE = "scale"; diff --git a/indra/llprimitive/llgltfmaterial.h b/indra/llprimitive/llgltfmaterial.h index fd26e7563ceb5b393a3287754c5e99a696dbf567..89c7f75c443279d0887d85909aea9ac3401ae938 100644 --- a/indra/llprimitive/llgltfmaterial.h +++ b/indra/llprimitive/llgltfmaterial.h @@ -51,7 +51,7 @@ class LLGLTFMaterial : public LLRefCount static const char* ASSET_VERSION; static const char* ASSET_TYPE; - static const std::array<char*, 2> ACCEPTED_ASSET_VERSIONS; + static const std::array<std::string, 2> ACCEPTED_ASSET_VERSIONS; static bool isAcceptedVersion(const std::string& version) { return std::find(ACCEPTED_ASSET_VERSIONS.cbegin(), ACCEPTED_ASSET_VERSIONS.cend(), version) != ACCEPTED_ASSET_VERSIONS.cend(); } struct TextureTransform diff --git a/indra/llprimitive/tests/llgltfmaterial_test.cpp b/indra/llprimitive/tests/llgltfmaterial_test.cpp index 4f58f4e567fac0820ea74669b21cf5c13d97aa3d..5ef88c81194f223bde5e3e5957c368d55f20b5a9 100644 --- a/indra/llprimitive/tests/llgltfmaterial_test.cpp +++ b/indra/llprimitive/tests/llgltfmaterial_test.cpp @@ -23,8 +23,6 @@ * $/LicenseInfo$ */ -#pragma once - #include "linden_common.h" #include "lltut.h"