Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-09-07 20:31:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-09-07 21:08:10 +0300
commitfd05f01be60128e70b7e53d566627c9e84b6a98d (patch)
treec49680b53d0a689e7a8766674e0bec3bc1207908 /source/blender/ikplugin
parentabeab4fcad6635e6932f5719918338414a20c726 (diff)
Partially revert "Cleanup: use post increment/decrement"
This partially reverts commit 0b2d1badecc48b5cbff5ec088b29c6e9acc5e1d0 Post increment can deep-copy for C++ iterators, while in my own checks GCC was able to optimize this to get the same output, better follow C++ best practice and use pre-increment for iterators.
Diffstat (limited to 'source/blender/ikplugin')
-rw-r--r--source/blender/ikplugin/intern/itasc_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/ikplugin/intern/itasc_plugin.cpp b/source/blender/ikplugin/intern/itasc_plugin.cpp
index 1ac9cd2223a..35910bc32b7 100644
--- a/source/blender/ikplugin/intern/itasc_plugin.cpp
+++ b/source/blender/ikplugin/intern/itasc_plugin.cpp
@@ -201,7 +201,7 @@ struct IK_Scene {
if (scene) {
delete scene;
}
- for (std::vector<IK_Target *>::iterator it = targets.begin(); it != targets.end(); it++) {
+ for (std::vector<IK_Target *>::iterator it = targets.begin(); it != targets.end(); ++it) {
delete (*it);
}
targets.clear();