From 6d8a4e7be5ac0ec59e8bd53c8814e8680291a4cb Mon Sep 17 00:00:00 2001 From: "rhyskidd@gmail.com" Date: Mon, 16 Jul 2012 15:39:30 +0000 Subject: PVS-Studio fix: V625 Consider inspecting the 'for' operator. Initial and final values of the iterator are the same. layout.cpp Due to changes in revision 51. --- nGenEx/Layout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nGenEx/Layout.cpp') diff --git a/nGenEx/Layout.cpp b/nGenEx/Layout.cpp index 651e6ca..1a5adcc 100644 --- a/nGenEx/Layout.cpp +++ b/nGenEx/Layout.cpp @@ -211,10 +211,10 @@ const std::vector& weight_y) if (min_x.size() == weight_x.size() && min_y.size() == weight_y.size()) { - for (auto iter = min_x.begin(); iter != min_x.begin(); ++iter) + for (auto iter = min_x.begin(); iter != min_x.end(); ++iter) cols.push_back((DWORD) *iter); - for (auto iter = min_y.begin(); iter != min_y.begin(); ++iter) + for (auto iter = min_y.begin(); iter != min_y.end(); ++iter) rows.push_back((DWORD) *iter); for (auto iter = weight_x.begin(); iter != weight_x.end(); ++iter) -- cgit v1.1