From fccecb2d234eeffbc071b10a5b4eb956afddce24 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Tue, 23 Feb 2021 21:07:57 +0100 Subject: [PATCH] Replace GenericVector by std::vector in class ResultIterator Signed-off-by: Stefan Weil --- src/ccmain/resultiterator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ccmain/resultiterator.cpp b/src/ccmain/resultiterator.cpp index c7fc4938..56636439 100644 --- a/src/ccmain/resultiterator.cpp +++ b/src/ccmain/resultiterator.cpp @@ -141,7 +141,8 @@ void ResultIterator::CalculateBlobOrder( // Step 1: Scan for and mark European Number sequences // [:ET:]*[:EN:]+(([:ES:]|[:CS:])?[:EN:]+)*[:ET:]* - GenericVector letter_types; + std::vector letter_types; + letter_types.reserve(word_length_); for (int i = 0; i < word_length_; i++) { letter_types.push_back(it_->word()->SymbolDirection(i)); }