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)); }