From ef396924513006f15b932efcc7905b18d8aa3bd8 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Tue, 16 Mar 2021 22:21:22 +0100 Subject: [PATCH] Replace remaining GenericVector by std::vector for src/classify Signed-off-by: Stefan Weil --- src/ccstruct/blobs.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ccstruct/blobs.cpp b/src/ccstruct/blobs.cpp index a9d24946f..4eab5d41f 100644 --- a/src/ccstruct/blobs.cpp +++ b/src/ccstruct/blobs.cpp @@ -548,10 +548,10 @@ void TBLOB::GetEdgeCoords(const TBOX &box, std::vector> &x_coor y_coords.resize(box.width()); CollectEdges(box, nullptr, nullptr, &x_coords, &y_coords); // Sort the output vectors. - for (int i = 0; i < x_coords.size(); ++i) - std::sort(x_coords[i].begin(), x_coords[i].end()); - for (int i = 0; i < y_coords.size(); ++i) - std::sort(y_coords[i].begin(), y_coords[i].end()); + for (auto coord : x_coords) + std::sort(coord.begin(), coord.end()); + for (auto coord : y_coords) + std::sort(coord.begin(), coord.end()); } // Accumulates the segment between pt1 and pt2 in the LLSQ, quantizing over