From 4c54b287e4b14d4c79cb1f64c90ebf095c982e38 Mon Sep 17 00:00:00 2001 From: Maksim Shabunin Date: Fri, 8 Aug 2014 16:55:10 +0400 Subject: [PATCH] Revert "Fix local variable shadowing" This reverts commit 2f8b5731dabb3162ca62a0e1901bb13f0ed83e4c. --- modules/flann/include/opencv2/flann/lsh_index.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/flann/include/opencv2/flann/lsh_index.h b/modules/flann/include/opencv2/flann/lsh_index.h index 23988d4..2530a01 100644 --- a/modules/flann/include/opencv2/flann/lsh_index.h +++ b/modules/flann/include/opencv2/flann/lsh_index.h @@ -118,8 +118,8 @@ public: if( (indices.size() == feature_size_ * CHAR_BIT) || (indices.size() < key_size_) ) { indices.resize( feature_size_ * CHAR_BIT ); - for (size_t j = 0; j < feature_size_ * CHAR_BIT; ++j) - indices[j] = j; + for (size_t i = 0; i < feature_size_ * CHAR_BIT; ++i) + indices[i] = i; std::random_shuffle(indices.begin(), indices.end()); } -- 2.7.4