assimp/code/AssetLib/X3D
Krishty 72f360710a Fix MSVC Warnings With “emplace_back()”
Several places in the code call `std::vector<aiVector3D>.emplace_back(0, 0, 0)`. The constructor of `aiVector3D` actually expects arguments of the type `ai_real`, (alias of `float` if compiling without `ASSIMP_DOUBLE_PRECISION`) but the literal `0` is of type `int`.

`emplace_back()` does support promotion, but `int` to `float` is a potentially lossy conversion. tl;dr: On warning level 4, MSVC spits out a very deeply nested `warning C4244: 'argument': conversion from '_Ty' to 'TReal', possible loss of data with _Ty=int and TReal=ai_real`.
2023-01-18 00:08:38 +01:00
..
X3DExporter.cpp Apply modernize-use-emplace clang-tidy rule 2022-08-23 11:41:49 -04:00
X3DExporter.hpp apply fixes to more headers 2022-09-01 12:28:45 -04:00
X3DGeoHelper.cpp Fix MSVC Warnings With “emplace_back()” 2023-01-18 00:08:38 +01:00
X3DGeoHelper.h migrated x3d importer to pugixml reader 2021-09-12 11:37:33 +02:00
X3DImporter.cpp Apply various clang-tidy checks for smartprs and modern C++ types 2022-11-08 11:03:55 -05:00
X3DImporter.hpp apply fixes to more headers 2022-09-01 12:28:45 -04:00
X3DImporter_Geometry2D.cpp Fix MSVC Warnings With “emplace_back()” 2023-01-18 00:08:38 +01:00
X3DImporter_Geometry3D.cpp Use correct XmlParser-methods and add some missing casts 2021-12-13 18:06:23 +01:00
X3DImporter_Group.cpp X3D: simplistic attempt to avoid crashes due to nullptr access 2021-12-01 12:21:29 +01:00
X3DImporter_Light.cpp Fixes 2021-11-10 20:37:27 +01:00
X3DImporter_Macro.hpp apply fixes to more headers 2022-09-01 12:28:45 -04:00
X3DImporter_Metadata.cpp Fixes 2021-11-10 20:37:27 +01:00
X3DImporter_Networking.cpp Fixes 2021-11-10 20:37:27 +01:00
X3DImporter_Node.hpp Try to fix a leak 2021-11-11 19:06:25 +01:00
X3DImporter_Postprocess.cpp fixed some compiling issues 2021-09-15 14:49:46 +02:00
X3DImporter_Rendering.cpp Fixes 2021-11-10 20:37:27 +01:00
X3DImporter_Shape.cpp Fixes 2021-11-10 20:37:27 +01:00
X3DImporter_Texturing.cpp Fixes 2021-11-10 20:37:27 +01:00
X3DXmlHelper.cpp migrated x3d importer to pugixml reader 2021-09-12 11:37:33 +02:00
X3DXmlHelper.h migrated x3d importer to pugixml reader 2021-09-12 11:37:33 +02:00