Commit 5e661b93 for tesseract

commit 5e661b9339e0f1c31552ab8bf724a4580751da02
Author: Stefan Weil <sw@weilnetz.de>
Date:   Wed Jan 13 07:28:21 2021 +0100

    Don't use local CP_RESULT_STRUCT variable to initialize elements of std::vector

    std::vector passes that local variable by reference, so no individual
    instances are used for the new vector elements.

    Signed-off-by: Stefan Weil <sw@weilnetz.de>

diff --git a/src/classify/intmatcher.cpp b/src/classify/intmatcher.cpp
index eb1e3892..b78c700f 100644
--- a/src/classify/intmatcher.cpp
+++ b/src/classify/intmatcher.cpp
@@ -393,8 +393,7 @@ class ClassPruner {
   /// Copies the pruned, sorted classes into the output results and returns
   /// the number of classes.
   int SetupResults(std::vector<CP_RESULT_STRUCT>* results) const {
-    CP_RESULT_STRUCT empty;
-    results->resize(num_classes_, empty);
+    results->resize(num_classes_);
     for (int c = 0; c < num_classes_; ++c) {
       (*results)[c].Class = sort_index_[num_classes_ - c];
       (*results)[c].Rating = 1.0f - sort_key_[num_classes_ - c] /