[Bf-blender-cvs] [4ec4f5b309c] soc-2020-io-performance: Fix build errors due to wrong auto to type changes

Ankit Meel noreply at git.blender.org
Thu Jul 23 21:24:11 CEST 2020


Commit: 4ec4f5b309cc66242e0f0377ee628282911ccaf2
Author: Ankit Meel
Date:   Fri Jul 24 00:54:06 2020 +0530
Branches: soc-2020-io-performance
https://developer.blender.org/rB4ec4f5b309cc66242e0f0377ee628282911ccaf2

Fix build errors due to wrong auto to type changes

They were the last changes I made and didn't build afterwards.

===================================================================

M	source/blender/io/wavefront_obj/intern/wavefront_obj_im_file_reader.cc
M	source/blender/io/wavefront_obj/intern/wavefront_obj_importer.cc

===================================================================

diff --git a/source/blender/io/wavefront_obj/intern/wavefront_obj_im_file_reader.cc b/source/blender/io/wavefront_obj/intern/wavefront_obj_im_file_reader.cc
index 7d7fa44ee24..53ee943b3de 100644
--- a/source/blender/io/wavefront_obj/intern/wavefront_obj_im_file_reader.cc
+++ b/source/blender/io/wavefront_obj/intern/wavefront_obj_im_file_reader.cc
@@ -332,7 +332,7 @@ void OBJParser::parse_and_store(Vector<std::unique_ptr<OBJRawObject>> &list_of_o
       str_curv_split.remove(0);
       (*curr_ob)->nurbs_element_.curv_indices.resize(str_curv_split.size());
       copy_string_to_int(str_curv_split, (*curr_ob)->nurbs_element_.curv_indices);
-      for (const int &curv_point : (*curr_ob)->nurbs_element_.curv_indices) {
+      for (int &curv_point : (*curr_ob)->nurbs_element_.curv_indices) {
         curv_point -= curv_point > 0 ? 1 : -(global_vertices.vertices.size());
       }
     }
diff --git a/source/blender/io/wavefront_obj/intern/wavefront_obj_importer.cc b/source/blender/io/wavefront_obj/intern/wavefront_obj_importer.cc
index 56ebf31808d..3adbd760a41 100644
--- a/source/blender/io/wavefront_obj/intern/wavefront_obj_importer.cc
+++ b/source/blender/io/wavefront_obj/intern/wavefront_obj_importer.cc
@@ -55,7 +55,7 @@ void OBJParser::print_obj_data(Span<std::unique_ptr<OBJRawObject>> list_of_objec
   }
   printf("\n");
 
-  for (const auto &curr_ob : list_of_objects) {
+  for (const std::unique_ptr<OBJRawObject> &curr_ob : list_of_objects) {
     for (const int &curr_vert_idx : curr_ob->vertex_indices_) {
       printf(" %d", curr_vert_idx);
     }



More information about the Bf-blender-cvs mailing list