From 8ab50aa9a03783f84cc389b00847e773e2688bf4 Mon Sep 17 00:00:00 2001 From: Alexandr Arutjunov Date: Sat, 13 Aug 2016 16:27:07 +0300 Subject: [PATCH] [*] Few C++11 constructions are removed. --- code/glTFAsset.inl | 2 +- code/glTFExporter.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/glTFAsset.inl b/code/glTFAsset.inl index 59ee79efe..382b37d8e 100644 --- a/code/glTFAsset.inl +++ b/code/glTFAsset.inl @@ -883,7 +883,7 @@ mr_skip_extensions: inline void Mesh::Decode_O3DGC(const SCompression_Open3DGC& pCompression_Open3DGC, Asset& pAsset_Root) { -using IndicesType = unsigned short;///< \sa glTFExporter::ExportMeshes. +typedef unsigned short IndicesType;///< \sa glTFExporter::ExportMeshes. o3dgc::SC3DMCDecoder decoder; o3dgc::IndexedFaceSet ifs; diff --git a/code/glTFExporter.cpp b/code/glTFExporter.cpp index 48ab099ed..737985922 100644 --- a/code/glTFExporter.cpp +++ b/code/glTFExporter.cpp @@ -262,7 +262,7 @@ void glTFExporter::ExportMeshes() // But yes for // using IndicesType = unsigned short; // because "ComponentType_UNSIGNED_SHORT" used for indices. And it's a maximal type according to glTF specification. -using IndicesType = unsigned short; +typedef unsigned short IndicesType; // Variables needed for compression. BEGIN. // Indices, not pointers - because pointer to buffer is changin while writing to it.