浏览代码

Prefer prefix ++ operator for non-primitive types

escherstair 6 年之前
父节点
当前提交
f1e0c460ed
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      code/AMF/AMFImporter_Postprocess.cpp

+ 2 - 2
code/AMF/AMFImporter_Postprocess.cpp

@@ -888,8 +888,8 @@ nl_clean_loop:
 			// and try to find them in another top nodes.
 			// and try to find them in another top nodes.
 			std::list<aiNode*>::const_iterator next_it = nl_it;
 			std::list<aiNode*>::const_iterator next_it = nl_it;
 
 
-			next_it++;
-			for(; next_it != node_list.end(); next_it++)
+			++next_it;
+			for(; next_it != node_list.end(); ++next_it)
 			{
 			{
 				if((*next_it)->FindNode((*nl_it)->mName) != nullptr)
 				if((*next_it)->FindNode((*nl_it)->mName) != nullptr)
 				{
 				{