Fixed a bunch of clang warnings
1. Fix misleading indentation warnings. 2. Fix creating a temporary const copy when iterating over a map (thanks to range analysis warnings) 3. Fix creating a copy when iterating over a range without reference qualifier (also thanks to range analysis warnings)
This commit is contained in:
@@ -685,7 +685,7 @@ bool XGLImporter::ReadMesh(TempScope& scope)
|
||||
}
|
||||
|
||||
// finally extract output meshes and add them to the scope
|
||||
typedef std::pair<unsigned int, TempMaterialMesh> pairt;
|
||||
typedef std::pair<const unsigned int, TempMaterialMesh> pairt;
|
||||
for(const pairt& p : bymat) {
|
||||
aiMesh* const m = ToOutputMesh(p.second);
|
||||
scope.meshes_linear.push_back(m);
|
||||
|
||||
Reference in New Issue
Block a user